Skip to content

Commit

Permalink
Add output of dockerhub sha
Browse files Browse the repository at this point in the history
  • Loading branch information
DevopsGoth authored Dec 5, 2023
1 parent 44476a9 commit 20b8ecb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dockerhub_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ on:
jobs:
Build-Push:
runs-on: ubuntu-latest
outputs:
DOCKERHUB_SHA: ${{ steps.validate-sha.outputs.DOCKERHUB_SHA }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -59,7 +61,7 @@ jobs:
- name: Update GHC version if needed
run: |
if [[ ! -z ${{ inputs.GHC_VERSION }} ]]
if [[ ! -z ${{ inputs.GHC_VERSION }} ]]; then
sed -i -e "s/ARG GHCVER=.*/ARG GHCVER=${{ inputs.GHC_VERSION }}/" Dockerfile
fi
- name: Build and push ubuntu image
Expand All @@ -86,6 +88,7 @@ jobs:
git push origin chainweb-${{ inputs.VERSION_NEW }}
- name: Validate SHAs
id: validate-sha
run: |
## spit these to output
digest1=$(docker inspect kadena/chainweb-node:${{ inputs.VERSION_NEW }} --format '{{ .RepoDigests }}')
Expand All @@ -94,5 +97,5 @@ jobs:
echo "DOCKERHUB_SHA=sha mismatches in dockerhub image" >> $GITHUB_ENV
exit 1
fi
echo "DOCKERHUB_SHA=$digest1" >> $GITHUB_ENV
echo "DOCKERHUB_SHA=$digest1" >> $GITHUB_OUTPUT
echo "DOCKERHUB_SHA=$digest1"

0 comments on commit 20b8ecb

Please sign in to comment.