build is being published #12
This file contains 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: publish | |
run-name: build is being published | |
on: | |
workflow_run: | |
workflows: | |
- build | |
types: | |
- completed | |
jobs: | |
publish-first: | |
runs-on: ubuntu-24.04 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: check out code | |
uses: actions/checkout@v4 | |
- name: Get image tag | |
id: tag | |
run: | | |
tag=${GITHUB_REF##*/} | |
echo tag=$tag >> $GITHUB_OUTPUT | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: makefile-digests-${{ github.sha }} | |
run-id: ${{ github.event.workflow_run.id }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to registry | |
shell: bash | |
run: | | |
helm registry login registry-1.docker.io -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push Helm chart | |
shell: bash | |
run: | | |
version=${{ steps.tag.outputs.tag }} | |
ersion=${version#v} | |
helm package test-chart --dependency-update --version "${ersion}" | |
helm push test-chart-*.tgz "oci://registry-1.docker.io/fad3t" |