Skip to content

Commit

Permalink
Migrate from gh actions set-output due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukancagatay committed Jan 13, 2024
1 parent caea3f6 commit 4d92a33
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
- docker-compose.yml
- docker-compose-multi.yml
branches:
- master
# - master
- migrate-to-gh-env

jobs:
build-push-latest:
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 4d92a33

Please sign in to comment.