chore: Rebase container build/push action
This commit is contained in:
parent
21d28e5600
commit
791110a59f
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user