-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (51 loc) · 1.51 KB
/
periodic_build.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
name: Periodically Build
on:
schedule:
- cron: '0 0 1 * *' # At 00:00 on the first day of every month
workflow_dispatch:
jobs:
setup-build:
name: Setup, Build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 6
# select a core set of images to build
matrix:
IMAGE_VARIANT:
- Dockerfile
# - Dockerfile-deb # don't build deb package for now
steps:
- name: Checkout
uses: actions/checkout@v2
if: ${{ github.event.action }} != 'workflow_dispatch'
- name: Checkout, ref = ${{ github.ref_name }}
uses: actions/checkout@v2
if: ${{ github.event.action }} == 'workflow_dispatch'
with:
ref: ${{ github.ref_name }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.IMAGE_VARIANT }}
tags: quota-microservices
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Extract built package
uses: shrink/actions-docker-extract@v3
id: extract
with:
image: quota-microservices
path: /output/.
destination: output
# Archive the built package
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: compiled-artifacts
path: output