Skip to content

Commit d71a297

Browse files
committed
tag uploaded artifacts to the release
1 parent 070b170 commit d71a297

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.github/workflows/go-build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,3 @@ jobs:
5151
name: ${{ inputs.artifact }}-${{ matrix.go-version }}
5252
path: ${{ inputs.service}}/bin/${{ inputs.artifact }}
5353
retention-days: 5
54-
55-
- name: set output for build files
56-
id: outputs
57-
run: |
58-
echo "::set-output name=binary_x64::${{ inputs.service}}/bin/${{ inputs.artifact }}"
59-
echo "::set-output name=binary_name::${{ inputs.artifact }}"

.github/workflows/release-workflow.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ jobs:
110110
env:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112

113-
- name: upload amd64 go binary as release asset
114-
uses: actions/upload-release-asset@v1
113+
- name: Download build artifacts
114+
uses: actions/download-artifact@v4
115115
with:
116-
upload_url: ${{ steps.create_release.outputs.upload_url }}
117-
asset_path: ${{ needs.go-build.outputs.binary_x64 }} # Path to arm64 binary from reusable workflow's output
118-
asset_name: ${{ needs.go-build.outputs.binary_name }}-linux-amd64
119-
asset_content_type: application/octet-stream # Content type for binaries
116+
path: ./dist
117+
118+
- name: Upload artifacts to Release
119+
uses: softprops/action-gh-release@v2
120+
with:
121+
files: ./dist/**/*

.github/workflows/ssh-key-signer-server-docker.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ jobs:
8686
- name: sign the published docker image
8787
if: startsWith(github.ref, 'refs/tags/v')
8888
env:
89+
COSIGN_EXPERIMENTAL: "true"
8990
TAGS: ${{ steps.meta.outputs.tags }}
9091
DIGEST: ${{ steps.build-and-push.outputs.digest }}
9192
# This step uses the identity token to provision an ephemeral certificate
9293
# against the sigstore community Fulcio instance.
93-
run: |
94-
echo "${TAGS}" | while read tag; do
95-
cosign sign --yes $tag
96-
done
94+
run: cosign sign --yes ghcr.io/your-org/your-image@${DIGEST}

0 commit comments

Comments
 (0)