From 389df1e1c113469271b861b26614975d7946cff1 Mon Sep 17 00:00:00 2001 From: Zack Hodgson Brady Date: Fri, 15 Dec 2023 10:00:00 -0500 Subject: [PATCH] updated/fixed github actions --- .github/workflows/main.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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