Skip to content

v0.0.3

v0.0.3 #3

Workflow file for this run

name: releaser
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
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update version file
run: echo $GITHUB_REF_NAME > VERSION.md
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 --clean
env:
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 }}