fix missing metrics for notifications #23
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: Build | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: write # needed to write releases | |
id-token: write # needed for keyless signing | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yml | |
test: | |
needs: lint | |
uses: ./.github/workflows/test.yml | |
release: | |
needs: [lint, test] | |
strategy: | |
matrix: | |
go-version: [1.22.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
install-only: true | |
# Push images to Dockerhub | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_SECRET }} | |
- name: Run Mage | |
uses: magefile/mage-action@v3 | |
with: | |
version: latest | |
args: release:tag | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |