generated from microsoft/ccf-app-template
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 1.2 KB
/
publish-release.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
name: "Publish release"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
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:${{ github.ref }}-virtual -f Dockerfile.virtual .
docker build -t lskv:${{ github.ref }}-sgx -f Dockerfile.sgx .
- name: Copy files out of images
run: |
docker create --name lskv-virtual lskv:${{ github.ref }}-virtual
docker cp lskv-virtual:/app/liblskv.virtual.so liblskv.virtual.so
docker rm lskv-virtual
docker create --name lskv-sgx lskv:${{ github.ref }}-sgx
docker cp lskv-sgx:/app/liblskv.enclave.so.signed liblskv.enclave.so.signed
docker rm lskv-sgx
- name: Publish ${{ github.ref }} release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref }}
tag_name: ${{ github.ref }}
files: |
liblskv.virtual.so
liblskv.enclave.so.signed