docker-swiss-army-knife/.forgejo/workflows/kaniko.yaml
Julius Zeidler becffc8cbd
Some checks failed
build-airflow-image / build (push) Failing after 10s
Build images / build-and-push-arch (push) Failing after 10s
kaniko / deploy (push) Failing after 55s
publish step
2025-04-02 18:46:53 +02:00

23 lines
764 B
YAML

name: kaniko
on: push
jobs:
deploy:
runs-on: ubuntu-rolling
steps:
- uses: actions/checkout@v3
- uses: docker/metadata-action@v4
id: metadata
with:
images: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}
- uses: int128/kaniko-action@v1
id: build
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache: true
cache-repository: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}/cache
- run: kustomize edit set image myapp=${{ steps.ecr.outputs.registry }}/${{ github.repository }}@${{ steps.build.outputs.digest }}
- run: kustomize build | kubectl apply -f -