From 260ee0b44f78fa9db8a10590ad894744efbcde21 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 25 Jul 2024 23:54:19 +0200 Subject: [PATCH] update action --- .forgejo/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ .gitea/workflows/build.yml | 25 ------------------------- 2 files changed, 35 insertions(+), 25 deletions(-) create mode 100644 .forgejo/workflows/build.yml delete mode 100644 .gitea/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..afc8b02 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,35 @@ +name: deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: host + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + registry: git.hydrar.de + username: ${{ secrets.registry_user }} + password: ${{ secrets.registry_password }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: git.hydrar.de/jmarya/hoard:latest diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml deleted file mode 100644 index 39b4d08..0000000 --- a/.gitea/workflows/build.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: build - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install Docker - run: curl -fsSL https://get.docker.com | sh - - - name: Log in to Docker registry - run: echo "${{ secrets.registry_password }}" | docker login -u "${{ secrets.registry_user }}" --password-stdin git.hydrar.de - - - name: Build and push Docker image - run: | - docker build -t git.hydrar.de/jmarya/hoard:latest . - docker push git.hydrar.de/jmarya/hoard:latest