chore: Rebase container build/push action
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Waiting to run
Container & Helm chart / Container image (docker.io) (push) Failing after 1m11s

This commit is contained in:
Danny Bessems 2024-02-20 00:59:29 +01:00
parent 21d28e5600
commit 791110a59f

View File

@ -38,14 +38,32 @@ jobs:
# echo "version=$(cat .version)" >> $GITHUB_OUTPUT # echo "version=$(cat .version)" >> $GITHUB_OUTPUT
Container image (docker.io): Container image (docker.io):
container: catthehacker/ubuntu:act-latest
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Kaniko build - name: Checkout
uses: aevea/action-kaniko@master uses: actions/checkout@v4
with: # - name: Create Kubeconfig
image: djpbessems/spamasaurusrex # run: |
username: ${{ secrets.DOCKERHUB_USERNAME }} # mkdir $HOME/.kube
password: ${{ secrets.DOCKERHUB_PASSWORD }} # echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
tag: ${{ steps.sem_rel.outputs.version }} - name: Set up Docker Buildx
tag_with_latest: true uses: docker/setup-buildx-action@v3
debug: true with:
driver: kubernetes
driver-opts: |
namespace=act-runner
qemu.install=true
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: code.spamasaurus.com
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_APIKEY }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
code.spamasaurus.com/djpbessems/spamasaurusrex:${{ steps.sem_rel.outputs.version }}