File tree 3 files changed +60
-4
lines changed
3 files changed +60
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : enclave bake
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - jp-more-tweaks
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ - jp-more-tweaks
12
+
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.ref_name }}
15
+ cancel-in-progress : true
16
+
17
+ env :
18
+ RUST_BACKTRACE : 1
19
+ CARGO_TERM_COLOR : never
20
+
21
+ jobs :
22
+ docker :
23
+ # if: github.repository_owner == 'aws-samples'
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
+ - name : Set up Docker buildx
29
+ uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
30
+ - name : Build
31
+ uses : docker/bake-action@3fc70e1131fee40a422dd8dd0ff22014ae20a1f3 # v5.11.0
32
+ env :
33
+ SOURCE_DATE_EPOCH : 0
Original file line number Diff line number Diff line change 1
- name : Rust
1
+ name : rust tests
2
2
3
3
on :
4
4
push :
@@ -14,15 +14,17 @@ concurrency:
14
14
15
15
env :
16
16
RUST_BACKTRACE : 1
17
- CARGO_TERM_COLOR : always
17
+ CARGO_TERM_COLOR : never
18
18
19
19
jobs :
20
20
test :
21
21
if : github.repository_owner == 'aws-samples'
22
22
runs-on : ubuntu-latest
23
23
steps :
24
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25
- - uses : Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
24
+ - name : Checkout
25
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ - name : Cache
27
+ uses : Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
26
28
- name : Format
27
29
run : cargo fmt --all -- --check --verbose
28
30
- name : Build
Original file line number Diff line number Diff line change
1
+ group "default" {
2
+ targets = [" parent" , " enclave" ]
3
+ }
4
+
5
+ target "parent" {
6
+ context = " ./parent"
7
+ dockerfile = " Dockerfile"
8
+ args = {
9
+ TARGETPLATFORM = " x86_64-unknown-linux-gnu"
10
+ }
11
+ tags = [" parent-vault:latest" ]
12
+ }
13
+
14
+ target "enclave" {
15
+ context = " ./enclave"
16
+ dockerfile = " Dockerfile"
17
+ args = {
18
+ TARGETPLATFORM = " x86_64-unknown-linux-musl"
19
+ }
20
+ tags = [" enclave-vault:latest" ]
21
+ }
You can’t perform that action at this time.
0 commit comments