Skip to content

Commit

Permalink
GHA: release canary builds (#14)
Browse files Browse the repository at this point in the history
A canary build contains artifacts built from the HEAD of the default
branch (`main`).

Add a GitHub Actions workflow to release canary builds to GitHub
Releases.
  • Loading branch information
syncom authored Dec 17, 2022
1 parent 8bb4e74 commit 36918d7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Reproducible (r10e) r10edocker binaries canary builds"
on:
push:
branches:
- 'main'
jobs:
release-r10e-binaries:
name: "Release r10e r10edocker"
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v3

- name: "Build r10e apps at HEAD of default branch"
run: |
set -euxo pipefail
cd ${{ github.workspace }}
make r10e-build
- name: "Release versioned"
# v1.11.1
uses: ncipollo/release-action@4c75f0f2e4ae5f3c807cf0904605408e319dcaac
with:
tag: "canary"
name: "Canary"
allowUpdates: true
generateReleaseNotes: false
artifacts: "r10e-build/*"
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ If your Go application is not reproducible, make sure you
### install `r10edocker`

```bash
go install github.com/syncom/r10edocker@latest
# commit SHA for v0.2.1. Pin commit because it's less malleable than a tag
go install github.com/syncom/r10edocker@b2456e371147ed61d8f6d29f31b96a7be55cc207
```

### Set up your Go project for reproducible Docker builds
Expand Down

0 comments on commit 36918d7

Please sign in to comment.