Skip to content

v2.3.2

v2.3.2 #65

Workflow file for this run

name: kray-releaser
on:
release:
types: [created]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
RELEASE_NOTES: "generated by a new release in kubefirst/kubefirst repo"
jobs:
release-repos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update version file
run: echo $GITHUB_REF_NAME > VERSION.md
- name: Release kubefirst/gitops-template
run: gh release create -R kubefirst/gitops-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
with:
go-version: '>=1.18.0'
-
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
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 }}