Skip to content

Create an action to automatically release on a tag (#11) #2

Create an action to automatically release on a tag (#11)

Create an action to automatically release on a tag (#11) #2

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
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