Skip to content

Commit

Permalink
Merge branch 'random_key_2' of github.com:piotrpalcz/image-rs into ra…
Browse files Browse the repository at this point in the history
…ndom_key_2

Signed-off-by: piotrpalcz <[email protected]>
  • Loading branch information
piotrpalcz committed Dec 19, 2023
2 parents 65fe440 + f708f3b commit 609ac22
Show file tree
Hide file tree
Showing 98 changed files with 4,112 additions and 1,350 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/aa_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- 'attestation-agent/**'
- '.github/workflows/aa_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'attestation-agent/**'
- '.github/workflows/aa_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand All @@ -30,7 +32,7 @@ jobs:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aa_cc_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- cc_kbc_snp
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aa_crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/aa_eaa_kbc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: attestation-agent eaa_kbc tests

on:
push:
branches:
- 'main'
paths:
- 'attestation-agent/kbc/eaa_kbc/**'
- '.github/workflows/aa_eaa_kbc.yml'
pull_request:
paths:
- 'attestation-agent/kbc/eaa_kbc/**'
- '.github/workflows/aa_eaa_kbc.yml'
# push:
# branches:
# - 'main'
# paths:
# - 'attestation-agent/kbc/eaa_kbc/**'
# - '.github/workflows/aa_eaa_kbc.yml'
# pull_request:
# paths:
# - 'attestation-agent/kbc/eaa_kbc/**'
# - '.github/workflows/aa_eaa_kbc.yml'
create:
workflow_dispatch:

Expand All @@ -31,7 +31,7 @@ jobs:

steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aa_occlum_sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
working-directory: ./attestation-agent
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/aa_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Build and push coco-key-provider
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./attestation-agent/docker/Dockerfile.keyprovider
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aa_sample_keyprovider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aa_sev_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- online_sev_kbc
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/api-server-rest-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand All @@ -30,7 +32,7 @@ jobs:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/cdh_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: confidential-data-hub basic build and unit tests

on:
push:
branches:
- "main"
paths:
- 'confidential-data-hub/**'
- '.github/workflows/cdh_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'confidential-data-hub/**'
- '.github/workflows/cdh_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

jobs:
basic_ci:
name: Check
defaults:
run:
working-directory: ./confidential-data-hub
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Install protoc
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Build and install
run: |
make && make install
- name: Musl build
run: |
make LIBC=musl
- name: s390x build
run:
make ARCH=s390x

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --features kbs,aliyun,sev,bin -p kms -p confidential-data-hub -p secret -p image

- name: Run cargo fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -p kms -p confidential-data-hub -p secret -p image -- --check

- name: Run rust lint check
uses: actions-rs/cargo@v1
with:
command: clippy
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now
args: -p kms -p confidential-data-hub -p secret -p image -- -D warnings -A clippy::derive-partial-eq-without-eq
6 changes: 5 additions & 1 deletion .github/workflows/image_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
paths:
- 'image-rs/**'
- '.github/workflows/image_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'image-rs/**'
- '.github/workflows/image_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand All @@ -29,7 +33,7 @@ jobs:
- nightly
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore lychee cache
uses: actions/cache@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ocicrypt_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
paths:
- 'ocicrypt-rs/**'
- '.github/workflows/ocicrypt_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'ocicrypt-rs/**'
- '.github/workflows/ocicrypt_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand All @@ -33,7 +37,7 @@ jobs:

steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Update cargo home
Expand Down
Loading

0 comments on commit 609ac22

Please sign in to comment.