Bump Go to 1.22.2 (#437) #41
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: | |
buildandtest: | |
uses: ./.github/workflows/go.yml | |
secrets: inherit | |
build: | |
# stick with Ubuntu 20.04 LTS for older glibc compatibility | |
runs-on: "ubuntu-20.04" | |
name: goreleaser | |
needs: buildandtest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: "go.mod" | |
- name: docker login | |
run: docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}" | |
- name: Release via goreleaser | |
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 | |
with: | |
args: release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_GORELEASER_TOKEN }} | |
- name: Ping Forge to check for new Versions | |
run: curl -d '' https://app.stormforger.com/cli_releases/refresh --user-agent "StormForger Github Action Pipeline" --user ":${{ secrets.FORGE_EXTERNAL_ACCESS_BASIC_AUTH_SECRET }}" --fail |