Bump version to 1.14.3 (#94) #29
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*' | |
env: | |
go-version: "1.20" | |
jobs: | |
build: | |
name: Release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.go-version }} | |
- name: Build binaries | |
run: make install GOBIN=`pwd`/docker | |
- name: Build setup-hw image | |
run: | | |
docker build -t quay.io/cybozu/setup-hw:latest --target stage1 docker | |
docker build -t quay.io/cybozu/setup-hw-secret:latest docker | |
- name: Push images | |
run: | | |
echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USER }} --password-stdin quay.io | |
tag=${GITHUB_REF#refs/tags/v} | |
for name in setup-hw setup-hw-secret; do | |
echo "pushing ${name}:v${tag} ..." | |
docker tag quay.io/cybozu/${name}:latest quay.io/cybozu/${name}:$tag | |
if ! echo $tag | grep -q -e '-'; then docker push quay.io/cybozu/${name}:latest; fi | |
docker push quay.io/cybozu/${name}:$tag | |
done | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
tagname="${GITHUB_REF#refs/tags/}" | |
if echo ${{ github.ref }} | grep -q -e '-'; then prerelease=-p; fi | |
gh release create -t "Release $tagname" $prerelease \ | |
-n "See [CHANGELOG.md](./CHANGELOG.md) for details." \ | |
"$tagname" |