Skip to content

Commit

Permalink
tag latest on CI (#485)
Browse files Browse the repository at this point in the history
* tag latest on CI

* Update releaser.yaml

* Update .goreleaser.yaml

* Update releaser.yaml

* Delete release.yaml

* Update .goreleaser.yaml

* Delete go-release-binaries.yaml
  • Loading branch information
6za authored Sep 30, 2022
1 parent 064dc23 commit 7f878c1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 73 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/go-release-binaries.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/release.yaml

This file was deleted.

25 changes: 24 additions & 1 deletion .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,29 @@ jobs:
run: gh release create -R kubefirst/metaphor-go-template ${{ github.REF_NAME }} --notes "${{ env.RELEASE_NOTES }}"
- name: Release kubefirst/metaphor-frontend-template
run: gh release create -R kubefirst/metaphor-frontend-template ${{ github.REF_NAME }} --notes "${{ env.RELEASE_NOTES }}"
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

release-docker:
needs: goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -43,8 +65,9 @@ jobs:
with:
push: true
context: ./build
build-args: KUBEFIRST_VERSION=${{ github.REF_NAME }}
file: ./build/Dockerfile
tags: kubefirst/kubefirst:${{ github.REF_NAME }}
tags: kubefirst/kubefirst:${{ github.REF_NAME }},kubefirst/kubefirst:latest
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
Expand Down
19 changes: 11 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ builds:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
ldflags:
- -X github.com/kubefirst/kubefirst/configs.K1Version={{.Version}}

#archives:
# - replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -33,4 +36,4 @@ brews:
homepage: https://github.com/kubefirst/kubefirst
tap:
owner: kubefirst
name: homebrew-tools
name: homebrew-tools

0 comments on commit 7f878c1

Please sign in to comment.