fix
Some checks failed
Build project / build (push) Has been cancelled
Publish / build (push) Failing after 1m8s

This commit is contained in:
2025-06-24 11:17:03 +02:00
parent b9b86e0d5d
commit 6c8503bf15

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-22.04 container: golang:1.24-bookworm
steps: steps:
- name: Setup SSH - name: Setup SSH
run: | run: |
@@ -15,7 +15,7 @@ jobs:
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
ssh-keyscan gitea-ssh.engen.priv.no >> ~/.ssh/known_hosts ssh-keyscan gitea-ssh.engen.priv.no >> ~/.ssh/known_hosts
- name: Install node and go - 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 - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: ssh repo - name: ssh repo
@@ -27,5 +27,5 @@ jobs:
KO_DOCKER_REPO: registry.engen.priv.no/unifi-network-operator-controller KO_DOCKER_REPO: registry.engen.priv.no/unifi-network-operator-controller
PATH: ~/go/bin:$PATH PATH: ~/go/bin:$PATH
run: | run: |
TAG=$(git describe --tags --abbrev=0) TAG=${GITHUB_REF#refs/tags/}
~/go/bin/ko publish ./cmd --tags "$TAG,latest" ~/go/bin/ko publish ./cmd --tags "$TAG,latest"