Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

# TODO: signing ?
#- uses: sigstore/[email protected]
- name: Set up Go
uses: actions/setup-go@v5

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Release
uses: goreleaser/[email protected]
with:
Expand Down
31 changes: 29 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: 2
project_name: nomad-job-exec
before:
hooks:
- go mod download
Expand All @@ -10,8 +11,34 @@ builds:
- windows
- darwin
dockers:
- image_templates:
- "ghcr.io/edgelaboratories/nomad-job-exec:{{ .Tag }}"
- use: buildx
image_templates:
- "ghcr.io/edgelaboratories/{{ .ProjectName }}:{{ .Tag }}-amd64"
build_flag_templates:
- "--pull"
- "--sbom=true"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- use: buildx
image_templates:
- "ghcr.io/edgelaboratories/{{ .ProjectName }}:{{ .Tag }}-arm64"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
docker_manifests:
- name_template: "ghcr.io/edgelaboratories/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "ghcr.io/edgelaboratories/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "ghcr.io/edgelaboratories/{{ .ProjectName }}:{{ .Tag }}-arm64"
archives:
- id: binary
formats: ['binary', 'zip']
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/edgelaboratories/nomad-job-exec

go 1.23.0
go 1.23.10

toolchain go1.24.5

Expand Down