Add p2w-attest image (#250)

* Add p2w-attest image

Also rename pyth-price to xc-server

* bugfix
This commit is contained in:
Ali Behjati 2022-08-16 13:23:08 +04:30 committed by GitHub
parent 6fc11fc289
commit 2a5b98187b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 1 deletions

View File

@ -25,5 +25,23 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
env: env:
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }} ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
ECR_REPOSITORY: pyth-price ECR_REPOSITORY: xc-server
IMAGE_TAG: ${{ github.sha }}
p2w-attest-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr
aws-region: eu-west-2
- uses: aws-actions/amazon-ecr-login@v1
id: ecr_login
- run: |
DOCKER_BUILDKIT=1 docker build -f Dockerfile.client -t bridge-client .
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f third_party/pyth/Dockerfile.p2w-attest .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
env:
ECR_REGISTRY: ${{ steps.ecr_login.outputs.registry }}
ECR_REPOSITORY: xc-attest
IMAGE_TAG: ${{ github.sha }} IMAGE_TAG: ${{ github.sha }}