Skip to content

Commit

Permalink
ci: upload binary with the tag (project-stacker#372)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha authored Dec 19, 2022
1 parent 6fc877d commit e54a685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ jobs:
make check VERSION_FULL=${{ github.event.release.tag_name }}-${{ steps.short-sha.outputs.sha }} PRIVILEGE_LEVEL=${{ matrix.privilege-level }}
env:
REGISTRY_URL: localhost:5000
- uses: actions/cache@v3
- if: github.event_name == 'release' && github.event.action == 'published'
uses: actions/cache@v3
id: restore-build
with:
path: stacker
key: ${{ github.sha }}
key: ${{ github.event.release.tag_name }}-${{ steps.short-sha.outputs.sha }}
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
# needs ci for the cached stacker binary
needs: ci
steps:
- uses: benjlevesque/[email protected]
id: short-sha
- uses: actions/cache@v3
id: restore-build
with:
path: stacker
key: ${{ github.sha }}
key: ${{ github.event.release.tag_name }}-${{ steps.short-sha.outputs.sha }}
- if: github.event_name == 'release' && github.event.action == 'published'
name: Publish artifacts on releases
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit e54a685

Please sign in to comment.