generated from microsoft/ccf-app-template
-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (41 loc) · 1.32 KB
/
publish-latest.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
name: "Publish latest"
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
DOCKER_BUILDKIT: 1 # https://docs.docker.com/develop/develop-images/build_enhancements/
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build containers
run: |
docker build -t lskv:latest-virtual -f Dockerfile.virtual .
docker build -t lskv:latest-sgx -f Dockerfile.sgx .
- name: Copy files out of images
run: |
docker create --name lskv-virtual lskv:latest-virtual
docker cp lskv-virtual:/app/liblskv.virtual.so liblskv.virtual.so
docker rm lskv-virtual
docker create --name lskv-sgx lskv:latest-sgx
docker cp lskv-sgx:/app/liblskv.enclave.so.signed liblskv.enclave.so.signed
docker rm lskv-sgx
- name: Tag latest-main
run: |
git tag latest-main
git push --force origin latest-main
- name: Publish latest release
uses: softprops/action-gh-release@v1
with:
name: Latest main
tag_name: latest-main
prerelease: true
files: |
liblskv.virtual.so
liblskv.enclave.so.signed