diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4301db0..3782d81 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -32,20 +32,14 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Get Chart Information - id: chart_info - run: | - chart_file=$(find . -name '*.tgz' -type f) - chart_filename=${chart_file##*/} - chart_tag=${chart_filename##*-} - chart_tag=${chart_tag%.tgz} - echo ::set-output name=chart_filename::$chart_filename - echo ::set-output name=chart_tag::$chart_tag - - name: Log into GitHub Container Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token - name: Push Helm Chart Release to GitHub Container Registry run: | - docker tag ${{ steps.chart_info.outputs.chart_filename }} ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${{ steps.chart_info.outputs.chart_tag }} - docker push ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${{ steps.chart_info.outputs.chart_tag }} \ No newline at end of file + chart_file=$(find . -name '*.tgz' -type f) + chart_filename=${chart_file##*/} + chart_tag=${chart_filename##*-} + chart_tag=${chart_tag%.tgz} + docker tag "${chart_file}" ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${chart_tag} + docker push ghcr.io/${{ github.repository_owner }}/rancher-cluster-templates:${chart_tag} \ No newline at end of file