Skip to content

Commit 40a0978

Browse files
committed
ci: Add protokit repo to Docker workflow and read deps from file
1 parent 0eea366 commit 40a0978

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/docker.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
env:
24-
APPCHAIN_REF: main
2524
APPCHAIN_REPO: ${{ github.repository_owner }}/appchain
25+
PROTOKIT_REPO: ${{ github.repository_owner }}/protokit
2626
IMAGE: ghcr.io/${{ github.repository_owner }}/appchain-agent
2727
IMAGE_TEST: zkn/appchain-agent
2828

@@ -32,6 +32,12 @@ jobs:
3232
with:
3333
path: appchain-agent
3434

35+
- name: Read dependencies versions
36+
run: |
37+
source appchain-agent/deps.env
38+
echo "APPCHAIN_REF=${APPCHAIN}" >> $GITHUB_ENV
39+
echo "PROTOKIT_REF=${PROTOKIT}" >> $GITHUB_ENV
40+
3541
- name: Checkout appchain repository
3642
uses: actions/checkout@v4
3743
with:
@@ -40,6 +46,13 @@ jobs:
4046
repository: ${{ env.APPCHAIN_REPO }}
4147
ssh-key: ${{ secrets.APPCHAIN_DEPLOY_KEY }}
4248

49+
- name: Checkout protokit repository
50+
uses: actions/checkout@v4
51+
with:
52+
path: protokit
53+
ref: ${{ env.PROTOKIT_REF }}
54+
repository: ${{ env.PROTOKIT_REPO }}
55+
4356
- name: Set up QEMU
4457
uses: docker/setup-qemu-action@v3
4558

@@ -78,6 +91,7 @@ jobs:
7891
with:
7992
build-contexts: |
8093
context-appchain=./appchain
94+
context-protokit=./protokit
8195
cache-from: type=gha
8296
cache-to: type=gha,mode=max
8397
context: ./appchain-agent
@@ -92,6 +106,7 @@ jobs:
92106
with:
93107
build-contexts: |
94108
context-appchain=./appchain
109+
context-protokit=./protokit
95110
context: ./appchain-agent
96111
tags: ${{ steps.meta.outputs.tags }}
97112
labels: ${{ steps.meta.outputs.labels }}

deps.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APPCHAIN=main
2+
PROTOKIT=zkn/main

0 commit comments

Comments
 (0)