bump network release #35
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: # yamllint disable-line rule:truthy | |
push: | |
branches-ignore: | |
- '**' | |
tags: | |
- 'v*.*.*' | |
# to be used by fork patch-releases ^^ | |
- 'v*.*.*-*' | |
env: | |
REGISTRY: ghcr.io | |
REPOSITORY: faircrypto/go-x1 | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_CONFIG: $HOME/.docker | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18.x | |
- name: Prepare | |
id: prepare | |
run: | | |
TAG=${GITHUB_REF#refs/tags/} | |
echo tag_name=${TAG} >> $GITHUB_OUTPUT | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run GoReleaser | |
run: | | |
docker run \ | |
--rm \ | |
--privileged \ | |
-e CGO_ENABLED=1 \ | |
-e GITHUB_TOKEN \ | |
-e DOCKER_CONFIG \ | |
-e REPOSITORY \ | |
-v $(HOME)/.docker:/root/.docker \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v `pwd`:/go/src/$(PACKAGE_NAME) \ | |
-w /go/src/$(PACKAGE_NAME) \ | |
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ | |
--rm-dist --skip-validate | |
env: | |
PACKAGE_NAME: github.com/${{ env.REPOSITORY }} | |
GOLANG_CROSS_VERSION: v1.18.3 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ steps.prepare.outputs.tag_name }} | |
REPOSITORY: ${{ env.REPOSITORY }} |