From 6c8503bf15e786613f95a5e301983f51d764f514 Mon Sep 17 00:00:00 2001 From: Vegard Engen Date: Tue, 24 Jun 2025 11:17:03 +0200 Subject: [PATCH] fix --- .gitea/workflows/publish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 0c668e5..19c63a5 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -6,7 +6,7 @@ on: jobs: build: runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-22.04 + container: golang:1.24-bookworm steps: - name: Setup SSH run: | @@ -15,7 +15,7 @@ jobs: chmod 600 ~/.ssh/id_rsa ssh-keyscan gitea-ssh.engen.priv.no >> ~/.ssh/known_hosts - name: Install node and go - run: apt update && apt -y install nodejs go + run: apt update && apt -y install nodejs - name: Check out repository code uses: actions/checkout@v4 - name: ssh repo @@ -27,5 +27,5 @@ jobs: KO_DOCKER_REPO: registry.engen.priv.no/unifi-network-operator-controller PATH: ~/go/bin:$PATH run: | - TAG=$(git describe --tags --abbrev=0) + TAG=${GITHUB_REF#refs/tags/} ~/go/bin/ko publish ./cmd --tags "$TAG,latest"