Only push on tags
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m39s

This commit is contained in:
Dreaded_X 2025-04-17 12:12:16 +02:00
parent bb19802f40
commit 68df9af0da
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -71,10 +71,12 @@ jobs:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }} SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
- name: Kustomize manifests - name: Kustomize manifests
if: gitea.ref_type == 'tag'
run: | run: |
./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml ./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml
- name: Push manifests - name: Push manifests
if: gitea.ref_type == 'tag'
run: | run: |
flux push artifact oci://$OCI_REPO/manifests:latest \ flux push artifact oci://$OCI_REPO/manifests:latest \
--path="./manifests.yaml" \ --path="./manifests.yaml" \