Manifests latest tag now tracks latest tagged release instead of latest build

This commit is contained in:
Dreaded_X 2025-04-17 14:32:56 +02:00
parent ba3f891122
commit 6d70187560
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -76,11 +76,11 @@ jobs:
- name: Push manifests - name: Push manifests
run: | run: |
flux push artifact oci://$OCI_REPO/manifests:latest \ flux push artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
--path="./manifests.yaml" \ --path="./manifests.yaml" \
--source="$(git config --get remote.origin.url)" \ --source="$(git config --get remote.origin.url)" \
--revision="$(git rev-parse HEAD)" \ --revision="$(git rev-parse HEAD)" \
$(echo "${{ steps.meta.outputs.labels }}" | sed -e 's/^/-a /') $(echo "${{ steps.meta.outputs.labels }}" | sed -e 's/^/-a /')
flux tag artifact oci://$OCI_REPO/manifests:latest \ flux tag artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /') $(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')