Skip to content

Commit

Permalink
add back setup-go and refactor output summary step
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 7, 2024
1 parent 3b0aa83 commit 6d91f10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/actions/goreleaser-build-sign-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ runs:
- name: Set up qemu
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- name: Setup go
uses: ./.github/actions/setup-go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: "go.mod"
- name: Setup goreleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/build-publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,11 @@ jobs:
shell: bash
run: |
echo "### Docker Images" | tee -a "$GITHUB_STEP_SUMMARY"
jq -r '.[] | select(.type == "Docker Image") | "`\(.goarch)-image`: \(.name)"' dist/artifacts.json >> output.txt
jq -r '.[] | select(.type == "Archive") | "`\(.goarch)-digest`: \(.extra.Checksum)"' dist/artifacts.json >> output.txt
while read -r line; do
if [[ $line == *"amd64-digest"* ]]; then
echo "\`amd64-image\`: ${private_sdlc}/chainlink:${GIT_REF}-amd64" | tee -a "$GITHUB_STEP_SUMMARY"
echo "$line" | tee -a "$GITHUB_STEP_SUMMARY"
fi
if [[ $line == *"arm64-digest"* ]]; then
echo "\`arm64-image\`: ${private_sdlc}/chainlink:${GIT_REF}-arm64" | tee -a "$GITHUB_STEP_SUMMARY"
echo "$line" | tee -a "$GITHUB_STEP_SUMMARY"
fi
echo "$line" | tee -a "$GITHUB_STEP_SUMMARY"
done < output.txt
echo "$GITHUB_STEP_SUMMARY"
- name: Collect Metrics
if: always()
Expand Down

0 comments on commit 6d91f10

Please sign in to comment.