Skip to content

Bump minimum Go version to 1.21 (#484) #44

Bump minimum Go version to 1.21 (#484)

Bump minimum Go version to 1.21 (#484) #44

Workflow file for this run

name: Push Tagged Container
on:
push:
tags:
- v*.*.*
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: setup go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: checkout
uses: actions/checkout@v4
- name: unit test
run: make test
- name: test build
run: make build
container-image:
runs-on: ubuntu-latest
needs: [unit-test]
steps:
- name: checkout
uses: actions/checkout@v4
- name: get version tag
run: echo TAG_NAME=$(echo ${GITHUB_REF} | rev | cut -d"/" -f1 | rev) >> $GITHUB_ENV
- name: docker login
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: docker build
run: make docker-build version=${TAG_NAME}
- name: docker push
run: make docker-push version=${TAG_NAME}