build(deps): update module golang.org/x/tools to v0.30.0 (#63) #262
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: | |
paths-ignore: | |
- '*.md' | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
branches: | |
- master | |
env: | |
GOTOOLCHAIN: local | |
jobs: | |
binary: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
version: 3.x | |
repo-token: ${{ github.token }} | |
- run: echo build-binary > env.txt | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: | | |
env.txt | |
go.sum | |
- run: task release | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: neptune | |
path: dist | |
docker: | |
needs: [ binary ] | |
if: ${{ github.event_name == 'push' }} | |
runs-on: "ubuntu-latest" | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune | |
path: dist | |
- run: chmod +x ./dist/* | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: 'ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}' | |
tags: | | |
type=semver,pattern=v{{version}} | |
type=ref,event=branch | |
type=ref,event=branch,suffix=-{{ sha }} | |
type=raw,value=${{ env.SHA }} | |
# need to build for multiple platform in one-pass, so tags like `master` doesn't get messed-up | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
provenance: false | |
file: etc/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |