Skip to content

Commit

Permalink
Merge branch 'main' into s390x-verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Feng Huo committed Apr 18, 2024
2 parents 3a6b84e + ee1a8ce commit 12667a9
Show file tree
Hide file tree
Showing 45 changed files with 1,447 additions and 306 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/kbs-client-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and push kbs-client

on:
push:
branches:
- main

jobs:
build_and_push:
env:
RUSTC_VERSION: 1.76.0
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write

steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUSTC_VERSION }}
override: true
profile: minimal
- name: Log in to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build a statically linked kbs-client for x86_64 linux
working-directory: kbs
run: |
make cli-static-x86_64-linux
- name: Push to ghcr.io
working-directory: target/x86_64-unknown-linux-gnu/release
run: |
commit_sha=${{ github.sha }}
oras push \
ghcr.io/confidential-containers/staged-images/kbs-client:sample_only-x86_64-linux-gnu-${commit_sha},latest \
kbs-client
167 changes: 165 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"attestation-service/verifier",
"attestation-service/rvps",
]
resolver = "2"

[workspace.package]
version = "0.1.0"
Expand All @@ -30,9 +31,10 @@ config = "0.13.3"
env_logger = "0.10.0"
hex = "0.4.3"
kbs-types = "0.6.0"
jsonwebtoken = "9"
jsonwebtoken = { version = "9", default-features = false }
log = "0.4.17"
prost = "0.11.0"
regorus = { version = "0.1.2", default-features = false, features = ["regex", "base64", "time"] }
rstest = "0.18.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.89"
Expand Down
Loading

0 comments on commit 12667a9

Please sign in to comment.