-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (32 loc) · 907 Bytes
/
main.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
name: Validate SecureSign
on:
push:
branches: ["main", "release*"]
tags: ["*"]
pull_request:
branches: ["main", "release*"]
env:
GO_VERSION: 1.19
OPERATOR_IMAGE: quay.io/rcook/securesign-operator:latest
jobs:
build-operator:
name: Build-operator
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
- name: Test
run: make test
- name: Build operator container
run: make docker-build OPERATOR_IMAGE=${OPERATOR_IMAGE}
- name: Export container image
run: docker save -o /tmp/operator.tar ${OPERATOR_IMAGE}
- name: Save container as artifact
uses: actions/upload-artifact@v1
with:
name: signer-operator
path: /tmp/operator.tar