Skip to content

Commit 1541916

Browse files
authored
ci: docker: use set-output to set output (#251)
1 parent 2e0c38f commit 1541916

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ jobs:
6666

6767
- name: Capture Image Digest
6868
id: capture-digest
69-
run: echo "digest_${{ matrix.arch }}=${{ steps.build.outputs.digest }}" >> $GITHUB_ENV
69+
run: |
70+
echo "digest_${{ matrix.arch }}=${{ steps.build.outputs.digest }}" >> $GITHUB_ENV
71+
echo "::set-output name=digest_${{ matrix.arch }}::${{ steps.build.outputs.digest }}"
7072
7173
merge:
7274
runs-on: ubuntu-latest
@@ -75,6 +77,11 @@ jobs:
7577
- name: Get sanitized Docker tag
7678
run: echo "DOCKER_TAG=$(echo $GIT_TAG | sed 's/[^a-zA-Z0-9\.]/-/g')" >> $GITHUB_ENV
7779

80+
- name: Debug Output Digests
81+
run: |
82+
echo "AMD64 Digest: ${{ needs.build-image-at-tag.outputs.digest_amd64 }}"
83+
echo "ARM64 Digest: ${{ needs.build-image-at-tag.outputs.digest_arm64 }}"
84+
7885
- name: Login to DockerHub
7986
if: ${{ github.event_name != 'pull_request' }}
8087
uses: docker/login-action@v3

0 commit comments

Comments
 (0)