Skip to content

Merge pull request #578 from kurator-bot/cherry-pick-577-to-release-0.6 #4

Merge pull request #578 from kurator-bot/cherry-pick-577-to-release-0.6

Merge pull request #578 from kurator-bot/cherry-pick-577-to-release-0.6 #4

Workflow file for this run

name: Build and Push Images
on:
push:
tags:
- "v*.*.*"
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Get image version
run: |
echo "image_version=$(echo ${GITHUB_REF##*/v})" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Compile
run: make build
- name: Build Docker Image
run: VERSION=${{ env.image_version }} make docker
- name: Login to ghcr.io
# This is where you will update the PAT to GITHUB_TOKEN
run: echo "${{ secrets.GH_PAT }}" | docker login ghcr.io -u $ --password-stdin
- name: Push Docker Image
run: VERSION=${{ env.image_version }} make docker-push