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
Container image (docker.io):
container: catthehacker/ubuntu:act-latest
runs-on: ubuntu-latest
steps:
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: djpbessems/spamasaurusrex
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag: ${{ steps.sem_rel.outputs.version }}
tag_with_latest: true
debug: true
- name: Checkout
uses: actions/checkout@v4
# - name: Create Kubeconfig
# run: |
# mkdir $HOME/.kube
# echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
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 }}