fix: build coordinator and bridge-history images (#1421) #223
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
env: | |
AWS_REGION: us-west-2 | |
jobs: | |
gas_oracle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: gas-oracle | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: gas-oracle | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/gas_oracle.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
rollup_relayer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: rollup-relayer | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: rollup-relayer | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/rollup_relayer.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
rollup-db-cli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: rollup-db-cli | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: rollup-db-cli | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/db_cli.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
bridgehistoryapi-fetcher: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: bridgehistoryapi-fetcher | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: bridgehistoryapi-fetcher | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/bridgehistoryapi-fetcher.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
bridgehistoryapi-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: bridgehistoryapi-api | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: bridgehistoryapi-api | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/bridgehistoryapi-api.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
bridgehistoryapi-db-cli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: bridgehistoryapi-db-cli | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: bridgehistoryapi-db-cli | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/bridgehistoryapi-db-cli.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
coordinator-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: coordinator-api | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: coordinator-api | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/coordinator-api.Dockerfile | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest | |
coordinator-cron: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: check repo and create it if not exist | |
env: | |
REPOSITORY: coordinator-cron | |
run: | | |
aws --region ${{ env.AWS_REGION }} ecr describe-repositories --repository-names ${{ env.REPOSITORY }} && : || aws --region ${{ env.AWS_REGION }} ecr create-repository --repository-name ${{ env.REPOSITORY }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
env: | |
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: coordinator-cron | |
IMAGE_TAG: ${{ github.ref_name }} | |
with: | |
context: . | |
file: ./build/dockerfiles/coordinator-cron.Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} | |
${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:latest |