Skip to content

Commit 2a5b981

Browse files
authored
Add p2w-attest image (#250)
* Add p2w-attest image Also rename pyth-price to xc-server * bugfix
1 parent 6fc11fc commit 2a5b981

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/image-push.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,23 @@ jobs:
2525
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
2626
env:
2727
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
28-
ECR_REPOSITORY: pyth-price
28+
ECR_REPOSITORY: xc-server
29+
IMAGE_TAG: ${{ github.sha }}
30+
p2w-attest-image:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
- uses: aws-actions/configure-aws-credentials@v1
35+
with:
36+
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr
37+
aws-region: eu-west-2
38+
- uses: aws-actions/amazon-ecr-login@v1
39+
id: ecr_login
40+
- run: |
41+
DOCKER_BUILDKIT=1 docker build -f Dockerfile.client -t bridge-client .
42+
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f third_party/pyth/Dockerfile.p2w-attest .
43+
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
44+
env:
45+
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
46+
ECR_REPOSITORY: xc-attest
2947
IMAGE_TAG: ${{ github.sha }}

0 commit comments

Comments
 (0)