Skip to content

v0.0.1

v0.0.1 #1

name: go:publish
on:
release:
types: [released]
workflow_dispatch:
jobs:
go-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v4
- name: Update VERSION file
run: |-
echo "${{ github.ref_name }}" > VERSION
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish image
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/liquid-reply/gardener-extension-shoot-kubecost:latest
ghcr.io/liquid-reply/gardener-extension-shoot-kubecost:${{ github.ref_name }}