-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (52 loc) · 1.29 KB
/
build-edge.yaml
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
name: Build edge
on:
push:
branches:
- main
paths:
- 'go.mod'
- 'go.sum'
- 'cmd/**'
- 'pkg/**'
- 'Dockerfile'
jobs:
build-publish:
name: "Build image and publish"
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Install Cosign
uses: sigstore/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Github registry login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
timeout-minutes: 10
run: make images
env:
USERNAME: ${{ github.repository_owner }}
PUSH: "true"
TAG: "edge"
- name: Sign images
timeout-minutes: 4
run: make images-cosign
env:
USERNAME: ${{ github.repository_owner }}
TAG: "edge"