Skip to content

Commit

Permalink
Merge pull request #23 from runwaylab/artifact-attestation
Browse files Browse the repository at this point in the history
Artifact attestation
  • Loading branch information
GrantBirki authored May 10, 2024
2 parents b10bdd4 + 10a5927 commit 961e656
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

# - name: generate artifact attestation
# uses: actions/[email protected]
# with:
# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: ${{ github.event_name != 'pull_request' }}
- name: digest
env:
DIGEST: ${{ steps.push.outputs.digest }}
run: |
echo "digest: $DIGEST"
- name: generate artifact attestation
uses: actions/[email protected]
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: ${{ github.event_name != 'pull_request' }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

permissions:
contents: write
id-token: write
attestations: write

jobs:
release:
Expand Down Expand Up @@ -42,6 +44,16 @@ jobs:
script/build
mv ./bin/runway ./releases/runway-linux-x86_64
- name: generate artifact attestation
uses: actions/[email protected]
with:
subject-path: 'releases/runway-*'

- uses: actions/upload-artifact@v4
with:
name: runway-binaries
path: releases/

- uses: actions/[email protected]
id: app-token
with:
Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Runway
VERSION = "v0.0.4"
VERSION = "v0.0.5"
end

0 comments on commit 961e656

Please sign in to comment.