Skip to content

Create an action to automatically release on a tag #1

Create an action to automatically release on a tag

Create an action to automatically release on a tag #1

Workflow file for this run

name: Release
on:
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+**' ] # Ex. v0.2.0, v0.2.1-rc2
workflow_dispatch: {}
pull_request: # TODO: remove
branches:
- release-**
env:
GOPROXY: https://proxy.golang.org
jobs:
docker-hub:
runs-on: ubuntu-latest
env:
IMG: tetrate/kubegres:${{ github.ref_name }}
PLATFORMS: linux/amd64,linux/arm64
steps:
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: make docker-build-push