This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (54 loc) · 1.59 KB
/
ci_workflows.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
name: Continuous Integration
on:
workflow_dispatch:
pull_request:
push:
tags:
- 'v*'
branches:
- 'main'
jobs:
pre-commit:
name: Pre-Commit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.MERGEBOT_TOKEN }}
- name: Pre-commit Checks
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="env SKIP=no-commit-to-branch make pre-commit"
unit-test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.MERGEBOT_TOKEN }}
- name: Run Unit Tests
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make test"
build-image-bundle:
name: Build Image Bundle
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.MERGEBOT_TOKEN }}
- name: Build Image Bundle
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.save-images.tar"
push-ci-docker-image:
name: Push CI Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.MERGEBOT_TOKEN }}
- name: Push Image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_READ_WRITE_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_READ_WRITE_PASSWORD }}
run: make ci.docker.run RUN_WHAT="make ci.docker.push"