Skip to content

Commit

Permalink
Update release flow to use dynamic Go version (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio authored Aug 12, 2024
1 parent 28170c5 commit 2eead2a
Showing 1 changed file with 7 additions and 47 deletions.
54 changes: 7 additions & 47 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
release:
types: [created]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
RELEASE_NOTES: "generated by a new release in konstructio/dropkick repo"

jobs:
release-repos:
runs-on: ubuntu-latest
Expand All @@ -19,56 +15,20 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.18.0'

-
name: Run GoReleaser
go-version-file: go.mod
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CLI_VERSION: $GITHUB_REF_NAME

# # maybe for automated cloud cleanup..
# release-docker:
# needs: goreleaser
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v3
# with:
# push: true
# context: ./build
# build-args: KUBEFIRST_VERSION=${{ github.REF_NAME }}
# file: ./build/Dockerfile
# tags: kubefirst/kubefirst:${{ github.REF_NAME }},kubefirst/kubefirst:latest
# - name: Update Docker Hub Description
# uses: peter-evans/dockerhub-description@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# repository: kubefirst/kubefirst
# short-description: ${{ github.event.repository.description }}

0 comments on commit 2eead2a

Please sign in to comment.