Skip to content

Commit

Permalink
ci: Update set-output to recommended format (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiryoh authored Dec 5, 2022
1 parent c3abe17 commit 2cd57d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
EOF
)
echo $LABELS
echo ::set-output name=labels::$LABELS
echo "labels=${LABELS}" >> $GITHUB_OUTPUT
- name: Build docker image
env:
Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:
docker push $DOCKER_USERNAME/$DOCKER_IMAGENAME:$DOCKER_TAGNAME-$TIMESTAMP
docker tag $DOCKER_USERNAME/$DOCKER_IMAGENAME:$DOCKER_TAGNAME $DOCKER_USERNAME/$DOCKER_IMAGENAME:${DOCKER_TAGNAME%-amd64}-$TIMESTAMP
docker push $DOCKER_USERNAME/$DOCKER_IMAGENAME:${DOCKER_TAGNAME%-amd64}-$TIMESTAMP
echo ::set-output name=timestamp::$TIMESTAMP
echo ::set-output name=digest::$(docker inspect --format='{{index .RepoDigests 0}}' $DOCKER_USERNAME/$DOCKER_IMAGENAME:$DOCKER_TAGNAME-$TIMESTAMP)
echo "timestamp=${TIMESTAMP}" >> $GITHUB_OUTPUT
echo "digest=$(docker inspect --format='{{index .RepoDigests 0}}' $DOCKER_USERNAME/$DOCKER_IMAGENAME:$DOCKER_TAGNAME-$TIMESTAMP)" >> $GITHUB_OUTPUT
- name: Cleanup docker image cache (amd64)
if: contains(matrix.arch, 'amd64') == true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
EOF
)
echo $LABELS
echo ::set-output name=labels::$LABELS
echo "labels=${LABELS}" >> $GITHUB_OUTPUT
- name: Build docker image
env:
Expand Down

0 comments on commit 2cd57d4

Please sign in to comment.