Skip to content

Commit 92aa157

Browse files
authored
fix docker build (#898)
1 parent 2b829f3 commit 92aa157

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/xc-admin-frontend-image-push.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and Push Cross Chain Admin Frontend
22
on:
3+
pull_request:
34
push:
45
branches: [main]
56
paths: [governance/xc_admin/**]
@@ -22,9 +23,16 @@ jobs:
2223
aws-region: eu-west-2
2324
- uses: aws-actions/amazon-ecr-login@v1
2425
id: ecr_login
25-
- run: |
26+
- name: Build docker image
27+
run: |
2628
DOCKER_BUILDKIT=1 docker build -t lerna -f tilt_devnet/docker_images/Dockerfile.lerna .
2729
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f governance/xc_admin/packages/xc_admin_frontend/Dockerfile .
30+
env:
31+
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
32+
ECR_REPOSITORY: xc-admin-frontend
33+
- name: Push docker image
34+
if: github.ref == 'refs/heads/main'
35+
run: |
2836
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
2937
env:
3038
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}

governance/xc_admin/packages/xc_admin_frontend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ USER 1000
88

99
COPY --chown=1000:1000 governance/xc_admin governance/xc_admin
1010
COPY --chown=1000:1000 pythnet/message_buffer pythnet/message_buffer
11+
COPY --chown=1000:1000 target_chains/ethereum/sdk/solidity target_chains/ethereum/sdk/solidity
12+
COPY --chown=1000:1000 governance/xc_governance_sdk_js governance/xc_governance_sdk_js
1113

1214
ENV NODE_ENV production
1315
ENV NEXT_TELEMETRY_DISABLED 1

0 commit comments

Comments
 (0)