-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: setup nightly builds, allow for pre-release builds * chore: done include commit sha in nightly build * chore: lets try nightly builds again
- Loading branch information
1 parent
4e77c61
commit d155a0d
Showing
2 changed files
with
94 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Nightly Build | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "30 7 * * *" # daily @ 7:30am UTC ☕️ | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
check-latest: true | ||
cache: true | ||
|
||
- uses: arduino/setup-task@v1 | ||
|
||
- uses: docker/setup-qemu-action@v2 | ||
|
||
- uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Install GCC for arm64 | ||
run: | | ||
sudo apt-get install gcc-aarch64-linux-gnu | ||
- name: Install Syft | ||
run: | | ||
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin | ||
- name: Prepare for release | ||
run: | | ||
task prep | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: "${{ github.repository_owner }}" | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: release --rm-dist --nightly | ||
env: | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ANALYTICS_KEY: ${{ secrets.ANALYTICS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters