Update image ghcr.io/home-operations/charts/kopiur (0.8.1 ➔ 0.9.0) (#… #457
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: push-artifact | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| paths: | |
| - "kubernetes/**" | |
| tags: | |
| - "*" | |
| jobs: | |
| flux-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write # for pushing | |
| id-token: write # for signing | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install flux | |
| uses: controlplaneio-fluxcd/distribution/actions/setup@6a83790e68767e16ebae1be447ba2734e9700da5 # main | |
| - name: Install cosign | |
| uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Prepare tags | |
| id: prep | |
| run: | | |
| TAG=latest | |
| VERSION="${REF_NAME}-${GITHUB_SHA::8}" | |
| if [[ $GITHUB_REF == refs/tags/* ]]; then | |
| TAG=latest-stable | |
| VERSION="${REF_NAME}" | |
| fi | |
| echo "tag=${TAG}" >> $GITHUB_OUTPUT | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| env: | |
| REF_NAME: ${{ github.ref_name }} | |
| - name: Push artifact | |
| uses: controlplaneio-fluxcd/distribution/actions/push@6a83790e68767e16ebae1be447ba2734e9700da5 # main | |
| id: push | |
| with: | |
| repository: ghcr.io/${{ github.repository }} | |
| path: "./" | |
| diff-tag: ${{ steps.prep.outputs.tag }} | |
| tags: ${{ steps.prep.outputs.version }} | |
| - name: Sign artifact | |
| if: steps.push.outputs.pushed == 'true' | |
| run: cosign sign --yes $DIGEST_URL | |
| env: | |
| DIGEST_URL: ${{ steps.push.outputs.digest-url }} |