diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88bd706..c3c485a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,4 @@ +# FILE: .github/workflows/ci.yml name: Build and Publish on: @@ -95,10 +96,10 @@ jobs: if: always() && hashFiles('checkov-results.json') != '' - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} @@ -106,7 +107,7 @@ jobs: - name: Extract metadata id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ghcr.io/${{ steps.repo.outputs.name }} tags: | @@ -157,10 +158,10 @@ jobs: - name: Package and push Helm chart run: | - helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin helm package chart/ CHART_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}') - helm push isms-builder-${CHART_VERSION}.tgz oci://ghcr.io/${{ steps.repo.outputs.name }}/charts + helm push isms-builder-${CHART_VERSION}.tgz oci://ghcr.io/${{ steps.repo.outputs.name }} - name: Make packages public run: | @@ -173,5 +174,5 @@ jobs: curl -X PATCH \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/user/packages/container/isms-builder%2Fcharts%2Fisms-builder/versions \ - -d '{"visibility":"public"}' || true \ No newline at end of file + https://api.github.com/user/packages/container/isms-builder%2Fisms-builder/versions \ + -d '{"visibility":"public"}' || true