-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.32 KB
/
docker-image.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
---
name: Docker Image CI
on:
push:
branches: ["master", "N-Storm-CI-boringtun-packages"]
pull_request:
branches: ["master", "N-Storm-CI-boringtun-packages"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build --file build/Dockerfile --tag boringtun-builds:$(date +%s) build/
- uses: actions/checkout@v3
- name: Build & extract the BoringTun packages.
run: cd build; bash ./BUILD.sh
- uses: actions/[email protected]
name: Cache package files
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: build/packages/*
# An explicit key for restoring and saving the cache
key: boringtun-packages
restore-keys: boringtun-packages
# The chunk size used to split up large files during upload, in bytes
upload-chunk-size: 500000 # optional
# An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms
enableCrossOsArchive: true # optional, default is false
# Run the post step to save the cache even if another step before fails
save-always: false # optional, default is false