-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.71 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
workflow_dispatch:
inputs:
image_tag:
type: string
description: "image_tag"
required: true
default: ""
push:
permissions:
contents: read
packages: write
jobs:
build-images:
strategy:
fail-fast: false
matrix:
images:
- name: agent-operator
- name: platform-operator
- name: wireguard-operator
- name: helm-charts-operator
- name: helm-charts-job-runner
- name: networking-operator
- name: networking/cmd/ip-binding-controller
- name: networking/cmd/ip-manager
- name: networking/cmd/webhook
- name: networking/cmd/dns
- name: networking/cmd/logs-proxy
runs-on: ubuntu-latest
name: ${{ matrix.images.name }}
steps:
- uses: actions/checkout@v4
- uses: kloudlite/actions/setup-cache-go@v1
with:
cache_key: "run-${{ matrix.platform }}-${{ matrix.arch }}"
working_directory: .
- uses: kloudlite/actions/generate-image-tag@v1
- uses: kloudlite/actions/setup-nix-cachix@v1
with:
flake_lock: "./flake.lock"
nix_develop_arguments: ".#default"
cachix_cache_name: ${{ secrets.CACHIX_CACHE_NAME }}
cachix_auth_token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: kloudlite/actions/setup-docker@v1
with:
docker_registry: "ghcr.io"
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Binary
shell: bash
env:
IMAGE: "ghcr.io/${{ github.repository }}:$IMAGE_TAG"
run: |+
run build image=$IMAGE