Skip to content

Add watermarkpodautoscaler service file (#232) #346

Add watermarkpodautoscaler service file (#232)

Add watermarkpodautoscaler service file (#232) #346

Workflow file for this run

name: build
env:
GO_VERSION: 1.22
on:
push:
# Permission forced by repo-level setting; only elevate on job-level
permissions:
contents: read
# packages: read
jobs:
build-linux-binary:
runs-on: ubuntu-latest
permissions:
# https://github.com/marketplace/actions/goreleaser-action
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: gcc install
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu
- name: Get tag
uses: little-core-labs/get-git-tag@v3.0.2
id: tag
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: "2.4.1"
args: build --skip=validate --config .goreleaser-for-linux.yaml
build-darwin-binary:
runs-on: macos-latest
permissions:
# https://github.com/marketplace/actions/goreleaser-action
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tag
uses: little-core-labs/get-git-tag@v3.0.2
id: tag
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
uses: goreleaser/goreleaser-action@v3
with:
args: build --skip=validate --config .goreleaser-for-darwin.yaml
build-windows-binary:
runs-on: ubuntu-latest
permissions:
# https://github.com/marketplace/actions/goreleaser-action
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tag
uses: little-core-labs/get-git-tag@v3.0.2
id: tag
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
uses: goreleaser/goreleaser-action@v3
with:
args: build --skip=validate --config .goreleaser-for-windows.yaml