Skip to content

Commit fe95d6f

Browse files
committed
WIP
1 parent e2d06d8 commit fe95d6f

File tree

3 files changed

+60
-4
lines changed

3 files changed

+60
-4
lines changed

.github/workflows/docker-bake.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

.github/workflows/rust.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: rust tests
22

33
on:
44
push:
@@ -14,15 +14,17 @@ concurrency:
1414

1515
env:
1616
RUST_BACKTRACE: 1
17-
CARGO_TERM_COLOR: always
17+
CARGO_TERM_COLOR: never
1818

1919
jobs:
2020
test:
2121
if: github.repository_owner == 'aws-samples'
2222
runs-on: ubuntu-latest
2323
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
2628
- name: Format
2729
run: cargo fmt --all -- --check --verbose
2830
- name: Build

docker-bake.hcl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
}

0 commit comments

Comments
 (0)