From 4d92a3384b503b3cda8f6360c6d45a6e7432a014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fukan=20=C3=87a=C4=9Fatay?= Date: Sat, 13 Jan 2024 22:50:51 +0100 Subject: [PATCH] Migrate from gh actions set-output due to deprecation --- .github/workflows/build-and-push.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 908b825..fd27fcb 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -8,7 +8,8 @@ on: - docker-compose.yml - docker-compose-multi.yml branches: - - master + # - master + - migrate-to-gh-env jobs: build-push-latest: @@ -27,11 +28,12 @@ jobs: id: version_provider run: | VERSION=$(grep 'ARG BASE_VERSION' Dockerfile | awk -F= '{print $2}') - echo "::set-output name=version::$VERSION" + echo "BASE_CONTAINER_VERSION=$VERSION" >> "$GITHUB_ENV" - name: debug run: | - echo "::debug:: ${{steps.version_provider.outputs.version}}" + echo "::debug:: ${BASE_CONTAINER_VERSION}" + echo "::debug:: ${{ env.BASE_CONTAINER_VERSION }}" - name: Login to DockerHub uses: docker/login-action@v3 @@ -43,9 +45,9 @@ jobs: uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 - push: true + push: false cache-from: | dcagatay/pwless-pgadmin4:latest tags: | dcagatay/pwless-pgadmin4:latest - dcagatay/pwless-pgadmin4:${{steps.version_provider.outputs.version}} + dcagatay/pwless-pgadmin4:${{ env.BASE_CONTAINER_VERSION }}