-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create release-kms-root-server-enclave.yml
- Loading branch information
1 parent
95485e2
commit a2a4aa2
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,37 @@ | ||
name: Release kms/root-server-enclave | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'release version' | ||
required: true | ||
jobs: | ||
build: | ||
if: github.actor == 'roshanrags' | ||
name: Release | ||
strategy: | ||
matrix: | ||
include: | ||
- os: 'ubuntu-24.04' | ||
runs-on: 'ubicloud-standard-8' | ||
OOS: linux | ||
ARCH: amd64 | ||
- os: 'ubuntu-24.04' | ||
runs-on: 'ubicloud-standard-8-arm' | ||
OOS: linux | ||
ARCH: arm64 | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v30 | ||
- name: Cachix | ||
uses: cachix/cachix-action@v15 | ||
with: | ||
name: oyster | ||
authToken: ${{secrets.CACHIX_AUTH_TOKEN}} | ||
- name: build | ||
run: nix build -vL --accept-flake-config github:marlinprotocol/oyster-monorepo/kms-root-server-enclave-${{github.event.inputs.version}}#musl.kms.root-server-enclave.default | ||
- name: upload | ||
run: | | ||
AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} ./result/image.eif s3://artifacts/oyster/eifs/kms-root-server_${{github.event.inputs.version}}_${{matrix.OOS}}_${{matrix.ARCH}}.eif | ||
AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} ./result/pcr.json s3://artifacts/oyster/eifs/kms-root-server_${{github.event.inputs.version}}_${{matrix.OOS}}_${{matrix.ARCH}}.json |