Use only chat system message to get newbies. #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build image | |
on: | |
push: | |
tags: [ 'v*.*.*' ] | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Log into registry ${{ env.REGISTRY }} | |
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.0' | |
- name: Setup ko | |
uses: imjasonh/setup-ko@v0.6 | |
with: | |
version: v0.11.2 | |
- name: Build | |
run: | | |
export KO_DOCKER_REPO="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | |
ko publish --bare --tags $GITHUB_REF_NAME . |