Skip to content

Commit 2344fc1

Browse files
committed
Add contracts ABI release
1 parent f16e0e2 commit 2344fc1

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/kms-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
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
@@ -76,3 +93,9 @@ jobs:
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

kms/dstack-app/builder/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM rust:1.86.0@sha256:300ec56abce8cc9448ddea2172747d048ed902a3090e6b57babb2bf19f754081 AS kms-builder
22
COPY ./shared /build
33
ARG DSTACK_REV
4+
ARG DSTACK_SRC_URL=https://github.com/Dstack-TEE/dstack.git
45
WORKDIR /build
56
RUN ./pin-packages.sh ./kms-pinned-packages.txt
67
RUN 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}
1920
RUN rustup target add x86_64-unknown-linux-musl

0 commit comments

Comments
 (0)