File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 5555 provenance : false
5656 build-args : |
5757 DSTACK_REV=${{ env.GIT_REV }}
58+ DSTACK_SRC_URL=${{ github.server_url }}/${{ github.repository }}
5859 SOURCE_DATE_EPOCH=${{ env.TIMESTAMP }}
5960
6061 - name : Generate artifact attestation
@@ -64,10 +65,26 @@ jobs:
6465 subject-digest : ${{ steps.build-and-push.outputs.digest }}
6566 push-to-registry : true
6667
68+ - name : Setup Node.js
69+ uses : actions/setup-node@v4
70+ with :
71+ node-version : ' 18'
72+ cache : ' npm'
73+ cache-dependency-path : kms/auth-eth/package-lock.json
74+
75+ - name : Install dependencies and compile contracts
76+ run : |
77+ cd kms/auth-eth
78+ npm ci
79+ npx hardhat compile
80+
6781 - name : GitHub Release
6882 uses : softprops/action-gh-release@v1
6983 with :
7084 name : " KMS Release v${{ env.VERSION }}"
85+ files : |
86+ kms/auth-eth/artifacts/contracts/DstackKms.sol/DstackKms.json
87+ kms/auth-eth/artifacts/contracts/DstackApp.sol/DstackApp.json
7188 body : |
7289 ## Docker Image Information
7390
7693 **Digest (SHA256)**: `${{ steps.build-and-push.outputs.digest }}`
7794
7895 **Verification**: [Verify on Sigstore](https://search.sigstore.dev/?hash=${{ steps.build-and-push.outputs.digest }})
96+
97+ ## Contract ABIs
98+
99+ This release includes the compiled contract ABIs:
100+ - `DstackKms.json` - Main KMS contract ABI
101+ - `DstackApp.json` - Application contract ABI
Original file line number Diff line number Diff line change 11FROM rust:1.86.0@sha256:300ec56abce8cc9448ddea2172747d048ed902a3090e6b57babb2bf19f754081 AS kms-builder
22COPY ./shared /build
33ARG DSTACK_REV
4+ ARG DSTACK_SRC_URL=https://github.com/Dstack-TEE/dstack.git
45WORKDIR /build
56RUN ./pin-packages.sh ./kms-pinned-packages.txt
67RUN apt-get update && \
@@ -13,7 +14,7 @@ RUN apt-get update && \
1314 libprotobuf-dev \
1415 clang \
1516 libclang-dev
16- RUN git clone https://github.com/Dstack-TEE/dstack.git && \
17+ RUN git clone ${DSTACK_SRC_URL} && \
1718 cd dstack && \
1819 git checkout ${DSTACK_REV}
1920RUN rustup target add x86_64-unknown-linux-musl
You can’t perform that action at this time.
0 commit comments