Skip to content

Commit

Permalink
semver ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jan 20, 2024
1 parent 4a84ba8 commit 2f4dc49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
name: Make macOS DMG
runs-on: macos-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
with:
# we need the whole thing so we can count commits.
fetch-depth: '0'
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: stable
- name: go-generate
run: go generate ./...
- name: make-signdmg
Expand Down Expand Up @@ -54,13 +54,13 @@ jobs:
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
with:
# we need the whole thing so we can count commits.
fetch-depth: '0'
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: stable
- name: make-release
id: release
run: |
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
name: Deploy ArchLinux AUR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Deploy Arch AUR
Expand Down Expand Up @@ -222,6 +222,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set docker build-args
run: >-
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define PACKAGE_ARGS
endef


VERSION_LDFLAGS:= -X \"$golift.io/version.Branch=$(BRANCH) ($(COMMIT))\" \
VERSION_LDFLAGS:= -X \"golift.io/version.Branch=$(BRANCH) ($(COMMIT))\" \
-X \"golift.io/version.BuildDate=$(DATE)\" \
-X \"golift.io/version.BuildUser=$(shell whoami)\" \
-X \"golift.io/version.Revision=$(ITERATION)\" \
Expand Down

0 comments on commit 2f4dc49

Please sign in to comment.