diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index 97703b3..a65d411 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -1,28 +1,28 @@ --- +name: "Create and publish a Docker image" on: [push] env: - REGISTRY: source.toby3d.me IMAGE_NAME: ${{ gitea.repository }} jobs: - build-image: + docker: runs-on: ubuntu-latest - name: "Create and publish a Docker image" env: DOCKER_USERNAME: toby3d steps: - name: Set up QEMU - uses: https://github.com/docker/setup-qemu-action@v3 + uses: https://gitea.com/docker/setup-qemu-action@v2 - name: Set up Docker BuildX - uses: https://github.com/docker/setup-buildx-action@v3 + uses: https://gitea.com/docker/setup-buildx-action@v2 - name: Login to registry - uses: https://github.com/docker/login-action@v3 + uses: https://gitea.com/docker/login-action@v2 with: - username: ${{ env.DOCKER_USERNAME }} + registry: source.toby3d.me + username: ${{ gitea.actor }} password: ${{ secrets.DOCKER_TOKEN }} - name: Build and push - uses: https://github.com/docker/build-push-action@v5 + uses: https://gitea.com/docker/build-push-action@v4 with: push: true tags: user/app:latest