This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
BAC-189: CI for Shielder Prover Server #286
Merged
Marcin-Radecki
merged 4 commits into
main
from
BAC-189-add-workflow-which-builds-prover-artifacts
Jul 18, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: Build and push Shielder-Prover-Server docker image (host app) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'git ref: hash, branch, tag to build shielder-prover-server files from' | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
main: | ||
name: Build Shielder Prover Server (host app) | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Call action get-ref-properties | ||
id: get-ref-properties | ||
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v7 | ||
|
||
- name: Login to Public Amazon ECR | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ vars.ECR_PUBLIC_HOST }} | ||
username: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY_ID }} | ||
password: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY }} | ||
|
||
- name: DOCKER | Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: v0.9.1 | ||
|
||
- name: Build and push docker image | ||
id: build-image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: tee | ||
builder: ${{ steps.buildx.outputs.name }} | ||
file: ./tee/docker/Dockerfile | ||
push: true | ||
# yamllint disable rule:line-length | ||
tags: | | ||
${{ vars.ECR_CC_RES_PUBLIC_REGISTRY }}shielder-prover:${{ steps.get-ref-properties.outputs.sha }} | ||
${{ vars.ECR_PUBLIC_HOST }}shielder-prover:latest | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
name: Build and add Shielder Prover Server artifacts to GitHub Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
check-vars-and-secrets: | ||
name: Check vars and secrets | ||
uses: ./.github/workflows/_check-vars-and-secrets.yml | ||
secrets: inherit | ||
|
||
build-enclave-artifacts: | ||
name: Build enclave artifacts | ||
uses: ./.github/workflows/_build-enclave-artifacts.yml | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
add-ci-artifacts-to-release: | ||
name: Add CI artifacts to the release | ||
needs: | ||
- check-vars-and-secrets | ||
- build-enclave-artifacts | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Call action get-ref-properties | ||
id: get-ref-properties | ||
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v7 | ||
|
||
- name: Download enclave artifacts - EIF | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ needs.build-enclave-artifacts.outputs.artifact-name-eif }} | ||
merge-multiple: true | ||
path: artifacts | ||
|
||
- name: Download enclave artifacts - Measurements | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ needs.build-enclave-artifacts.outputs.artifact-name-measurements }} | ||
merge-multiple: true | ||
path: artifacts | ||
|
||
- name: Generate release artifacts checksum (SHA256) | ||
uses: jmgilman/actions-generate-checksum@v1 | ||
with: | ||
output: | ||
checksums.txt | ||
patterns: | | ||
artifacts/* | ||
|
||
- name: Add CI artifacts to the release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
checksums.txt | ||
artifacts/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.