Compare commits
27 Commits
feature/fi
...
0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| ac47c880ed | |||
| 481091160b | |||
| 14e4fe1c46 | |||
| 4901dfbad5 | |||
| c454c78478 | |||
| c30e27efc4 | |||
| f2a943de3c | |||
| 720865c984 | |||
| 913a24a613 | |||
| 719ba853bc | |||
| 4e26fe02f5 | |||
| cd61d5c82a | |||
| 6983253c9e | |||
| 1d7c7c864e | |||
| 1a2def25bf | |||
| 6c8503bf15 | |||
| b9b86e0d5d | |||
| 2c9659409c | |||
| 20c4dda5ad | |||
| bb28850ca5 | |||
| f08c165628 | |||
| 46e6217557 | |||
| 36f337434d | |||
| 3f14d82679 | |||
| 1545f05d53 | |||
| 47116c70b5 | |||
| 7e6573deb4 |
@@ -6,21 +6,29 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: golang:1.24
|
container: golang:1.24-bookworm
|
||||||
steps:
|
steps:
|
||||||
- name: Setup SSH
|
- name: Install dependencies
|
||||||
run: |
|
run: apt update && apt -y install nodejs bash
|
||||||
mkdir -p ~/.ssh
|
- name: Setup SSH
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
run: |
|
||||||
chmod 600 ~/.ssh/id_rsa
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan gitea-ssh.engen.priv.no >> ~/.ssh/known_hosts
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
- name: Install node and go
|
chmod 600 ~/.ssh/id_rsa
|
||||||
run: apt update && apt -y install nodejs
|
ssh-keyscan gitea-ssh.engen.priv.no >> ~/.ssh/known_hosts
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: ssh repo
|
- name: ssh repo
|
||||||
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
run: git config --global url.git@gitea-ssh.engen.priv.no:.insteadOf https://gitea.engen.priv.no/
|
||||||
- name: Install ko
|
- name: Install ko
|
||||||
run: go install github.com/google/ko@latest
|
run: go install github.com/google/ko@latest
|
||||||
- name: Build
|
- name: Extract tag (outside container)
|
||||||
run: KO_DOCKER_REPO=registry.engen.priv.no/unifi-network-operator-controller PATH=~/go/bin:$PATH ko publish ./cmd --tags latest --bare
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
env
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
KO_DOCKER_REPO: registry.engen.priv.no/unifi-network-operator-controller
|
||||||
|
run: |
|
||||||
|
ko publish ./cmd --tags "$TAG,latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user