forked from superseriousbusiness/gotosocial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add snapshot builds using gh actions
- Loading branch information
Showing
2 changed files
with
73 additions
and
28 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,45 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
branches: | ||
- custom/ffmpeg-build | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
- name: Install go-swagger | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: go-swagger/go-swagger | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean --snapshot | ||
- name: Push container images | ||
run: | | ||
docker push ghcr.io/parkour-vienna/gotosocial:snapshot-armv6 | ||
docker push ghcr.io/parkour-vienna/gotosocial:snapshot-armv7 | ||
docker push ghcr.io/parkour-vienna/gotosocial:snapshot-arm64v8 | ||
docker push ghcr.io/parkour-vienna/gotosocial:snapshot-amd64 | ||
docker manifest create ghcr.io/parkour-vienna/gotosocial:snapshot ghcr.io/parkour-vienna/gotosocial:snapshot-armv6 ghcr.io/parkour-vienna/gotosocial:snapshot-armv7 ghcr.io/parkour-vienna/gotosocial:snapshot-amd64 ghcr.io/parkour-vienna/gotosocial:snapshot-arm64v8 | ||
docker manifest push ghcr.io/parkour-vienna/gotosocial:snapshot |
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