Skip to content

Commit

Permalink
chore: add VERSION file in deterministic container image (#15416)
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
Signed-off-by: Nathan Klick <[email protected]>
Co-authored-by: Nathan Klick <[email protected]>
  • Loading branch information
leninmehedy and nathanklick authored Nov 27, 2024
1 parent 5ec10f1 commit 0c23fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ jobs:
cp -Rvf "${{ github.workspace }}/hedera-node/data/apps" "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/sdk/data/"
echo "::endgroup::"
- name: Write Artifact Version Descriptor
run: |
printf "VERSION=%s\nCOMMIT=%s\nDATE=%s" "$(./gradlew -q showVersion)" "$(git log -1 --format='%H' | cut -c1-8)" "$(date -u)" | tee "${{ github.workspace }}/${{ env.DOCKER_CONTEXT_PATH }}/sdk/VERSION"
- name: Build Docker Image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ COPY --from=java-builder ${JAVA_HOME}/ ${JAVA_HOME}/
# Add SDK components
COPY sdk/data/apps/* /opt/hgcapp/services-hedera/HapiApp2.0/data/apps/
COPY sdk/data/lib/* /opt/hgcapp/services-hedera/HapiApp2.0/data/lib/
COPY sdk/VERSION /opt/hgcapp/services-hedera/HapiApp2.0/

# Add the entrypoint script
ADD entrypoint.sh /opt/hgcapp/services-hedera/HapiApp2.0/
Expand Down

0 comments on commit 0c23fbb

Please sign in to comment.