diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index cf86ac2..a009354 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -10,7 +10,7 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 - - name: Setup Node + - name: Set up Node uses: actions/setup-node@v3 with: node-version: 20 @@ -44,7 +44,7 @@ jobs: } build-image: - name: build-image + name: Container image runs-on: dind needs: semrel_dryrun container: ghcr.io/catthehacker/ubuntu:act-latest @@ -55,7 +55,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y qemu-user-static - - name: Set up Docker Context for Buildx + - name: Create builder context id: buildx-context run: | docker context create builders @@ -64,7 +64,7 @@ jobs: DOCKER_TLS_CERTDIR: /certs DOCKER_TLS_VERIFY: 1 DOCKER_CERT_PATH: "/certs/client" - - name: Setup Docker Buildx + - name: Set up buildx id: buildx uses: docker/setup-buildx-action@v3 with: @@ -75,19 +75,18 @@ jobs: DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_VERIFY: 1 DOCKER_CERT_PATH: "/certs/client" - - name: Login to Gitea + - name: Login to target repository uses: docker/login-action@v3 with: registry: code.spamasaurus.com username: ${{ gitea.actor }} password: ${{ secrets.GIT_APIKEY }} - - name: Build and push the image + - name: Build & push container image uses: docker/build-push-action@v5 with: - # push: ${{ gitea.event_name != 'pull_request' }} - platforms: linux/amd64 - context: djpbessems/packer-extended - tags: ${{ needs.semrel_dryrun.outputs.version }} + push: true + context: . + tags: djpbessems/packer-extended:${{ needs.semrel_dryrun.outputs.version }} env: DOCKER_HOST: "tcp://docker:2376/" DOCKER_TLS_CERTDIR: "/certs"