Merge pull request #126 from jaksi/dependabot/go_modules/golang.org/x… #18
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
release-binaries: | |
name: Release binaries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "^1.18" | |
- run: go build -o sshesame-linux-amd64 | |
env: | |
GOOS: linux | |
GOARCH: amd64 | |
- run: go build -o sshesame-linux-armv6 | |
env: | |
GOOS: linux | |
GOARCH: arm | |
GOARM: 6 | |
- run: go build -o sshesame-linux-armv7 | |
env: | |
GOOS: linux | |
GOARCH: arm | |
GOARM: 7 | |
- run: go build -o sshesame-linux-arm64 | |
env: | |
GOOS: linux | |
GOARCH: arm64 | |
- run: go build -o sshesame-macos-amd64 | |
env: | |
GOOS: darwin | |
GOARCH: amd64 | |
- run: go build -o sshesame-macos-arm64 | |
env: | |
GOOS: darwin | |
GOARCH: arm64 | |
- run: go build -o sshesame-windows-amd64.exe | |
env: | |
GOOS: windows | |
GOARCH: amd64 | |
- run: go build -o sshesame-windows-armv7.exe | |
env: | |
GOOS: windows | |
GOARCH: arm | |
GOARM: 7 | |
- run: go build -o sshesame-windows-arm64.exe | |
env: | |
GOOS: windows | |
GOARCH: arm64 | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
sshesame-linux-amd64 | |
sshesame-linux-armv6 | |
sshesame-linux-armv7 | |
sshesame-linux-arm64 | |
sshesame-macos-amd64 | |
sshesame-macos-arm64 | |
sshesame-windows-amd64.exe | |
sshesame-windows-armv7.exe | |
sshesame-windows-arm64.exe | |
sshesame.yaml | |
release-docker-images: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
name: Release Docker images | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-qemu-action@v1 | |
- uses: docker/setup-buildx-action@v1 | |
- uses: docker/login-action@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- uses: docker/build-push-action@v2 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
release-snaps: | |
name: Release snaps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: snapcore/action-build@v1 | |
id: build | |
- uses: snapcore/action-publish@v1 | |
with: | |
store_login: ${{ secrets.SNAP_STORE_LOGIN }} | |
snap: ${{ steps.build.outputs.snap }} | |
release: stable |