From cc32b9f4ebb633ea5dd7a4fa4fe28cd18f2898da Mon Sep 17 00:00:00 2001 From: Sentuerk Ugras Date: Thu, 27 Apr 2023 15:31:26 +0200 Subject: [PATCH] Workflow Script updated; ::set-output changed with GITHUB_OUTPUT, use newer version of docker/build-push-action@v4 and docker/login-action@v2 --- .github/workflows/automaticRelease.yml | 6 +++--- .github/workflows/publishImage.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/automaticRelease.yml b/.github/workflows/automaticRelease.yml index e19eee0..0fd3b34 100644 --- a/.github/workflows/automaticRelease.yml +++ b/.github/workflows/automaticRelease.yml @@ -16,8 +16,8 @@ jobs: id: compare_releases run: | eval $(scripts/checkHelmVersion.sh) - echo ::set-output name=triggerNewRelease::${triggerNewRelease} - echo ::set-output name=helmRelease::${helmRelease} + echo "triggerNewRelease=${triggerNewRelease}" | tee -a $GITHUB_OUTPUT + echo "helmRelease=${helmRelease}" | tee -a $GITHUB_OUTPUT - uses: stefanzweifel/git-auto-commit-action@v4 if: steps.compare_releases.outputs.triggerNewRelease == 'true' @@ -43,4 +43,4 @@ jobs: The image can be pulled with `$ docker pull ghcr.io/cloudogu/helm:${{ steps.compare_releases.outputs.helmRelease }}-1` draft: false - prerelease: false \ No newline at end of file + prerelease: false diff --git a/.github/workflows/publishImage.yml b/.github/workflows/publishImage.yml index e9d8390..9184375 100644 --- a/.github/workflows/publishImage.yml +++ b/.github/workflows/publishImage.yml @@ -32,14 +32,14 @@ jobs: echo "GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV echo "GIT_REF=$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)" >> $GITHUB_ENV - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.CR_PAT }} - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: push: true labels: | @@ -51,4 +51,4 @@ jobs: org.opencontainers.image.source=https://github.com/${{ github.repository }} tags: ${{ env.TAGS }} - name: Check manifest - run: docker buildx imagetools inspect ${{ env.GHCR_IMAGE }}:${{ env.VERSION }} \ No newline at end of file + run: docker buildx imagetools inspect ${{ env.GHCR_IMAGE }}:${{ env.VERSION }}