Merge pull request #45 from fujiwara/fix/validate-metric-name #25
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: | |
branches: | |
- "!**/*" | |
tags: | |
- "v*" | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: setup tools | |
run: | | |
mkdir ~/bin | |
curl -sL https://github.com/Songmu/goxz/releases/download/v0.4.1/goxz_v0.4.1_linux_amd64.tar.gz | tar zxvf - && install goxz_v0.4.1_linux_amd64/goxz ~/bin/ | |
curl -sL https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz | tar zxvf - && install ghr_v0.13.0_linux_amd64/ghr ~/bin/ | |
- name: release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export PATH=~/go/bin:~/bin:$PATH | |
make setup_ci | |
make dist | |
make release | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker Login | |
uses: docker/login-action@v2 | |
with: | |
username: fujiwara | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: docker | |
run: | | |
export TAG=$(echo $GITHUB_REF | cut -d/ -f3) | |
make docker-build-push-all |