ci: add snapshot builds using gh actions #1
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
name: goreleaser | |
on: | |
push: | |
branches: | |
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: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
distribution: goreleaser | |
version: snapshot | |
args: release --rm-dist | |
- 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 |