|
21 | 21 | runs-on: ubuntu-latest |
22 | 22 |
|
23 | 23 | env: |
24 | | - APPCHAIN_REF: main |
25 | 24 | APPCHAIN_REPO: ${{ github.repository_owner }}/appchain |
| 25 | + PROTOKIT_REPO: ${{ github.repository_owner }}/protokit |
26 | 26 | IMAGE: ghcr.io/${{ github.repository_owner }}/appchain-agent |
27 | 27 | IMAGE_TEST: zkn/appchain-agent |
28 | 28 |
|
|
32 | 32 | with: |
33 | 33 | path: appchain-agent |
34 | 34 |
|
| 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 | +
|
35 | 41 | - name: Checkout appchain repository |
36 | 42 | uses: actions/checkout@v4 |
37 | 43 | with: |
|
40 | 46 | repository: ${{ env.APPCHAIN_REPO }} |
41 | 47 | ssh-key: ${{ secrets.APPCHAIN_DEPLOY_KEY }} |
42 | 48 |
|
| 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 | + |
43 | 56 | - name: Set up QEMU |
44 | 57 | uses: docker/setup-qemu-action@v3 |
45 | 58 |
|
|
78 | 91 | with: |
79 | 92 | build-contexts: | |
80 | 93 | context-appchain=./appchain |
| 94 | + context-protokit=./protokit |
81 | 95 | cache-from: type=gha |
82 | 96 | cache-to: type=gha,mode=max |
83 | 97 | context: ./appchain-agent |
|
92 | 106 | with: |
93 | 107 | build-contexts: | |
94 | 108 | context-appchain=./appchain |
| 109 | + context-protokit=./protokit |
95 | 110 | context: ./appchain-agent |
96 | 111 | tags: ${{ steps.meta.outputs.tags }} |
97 | 112 | labels: ${{ steps.meta.outputs.labels }} |
|
0 commit comments