chore: Housekeeping
Some checks failed
build-image / Semantic Release (Dry-run) (push) Successful in 54s
build-image / Container image (push) Failing after 43s

This commit is contained in:
Danny Bessems 2024-06-05 21:42:38 +10:00
parent 6249c093f4
commit 822c235f3f

View File

@ -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"