chore: upgrade go to 1.22 (#591) #28
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[0-9]+.[0-9]+.[0-9]+" | |
- "v[0-9]+.[0-9]+.[0-9]-[a-zA-Z0-9]+" | |
jobs: | |
dist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.23.x | |
- name: Install nfpm, rpmbuild | |
run: sudo make -f Makefile.tools nfpm-debian rpmbuild-debian | |
- name: Make distributables | |
run: make -f Makefile.release dist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: "dist/*" | |
publish-github-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: dist | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: "dist" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
files: | | |
dist/* | |
publish-dockerhub: | |
runs-on: ubuntu-latest | |
needs: dist | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: "dist/*" | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.x | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Release | |
run: make -f Makefile.release publish-dockerhub |