fixed getting started to low res #19
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: Matterbrdige build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
AWS_REGION: us-west-2 | |
AWS_ACCOUNT: 887615018263 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# - name: Get Branch name | |
# uses: nelonoel/[email protected] | |
- name: Install awscli | |
run: pip3 install awscli | |
- 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 ECR | |
run: $(aws ecr get-login --no-include-email --region ${{ env.AWS_REGION }}) > /dev/null | |
- name: Build and push getting started container | |
uses: docker/build-push-action@v5 | |
with: | |
file: Dockerfile_whatsappmulti_getting_started | |
platforms: linux/amd64 #,linux/arm64 | |
context: . | |
push: true | |
tags: | | |
${{ env.AWS_ACCOUNT }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ github.event.repository.name }}:getting_started | |
- name: Build and push runtime container | |
uses: docker/build-push-action@v5 | |
with: | |
file: Dockerfile_whatsappmulti_runtime | |
platforms: linux/amd64 #,linux/arm64 | |
context: . | |
push: true | |
tags: | | |
${{ env.AWS_ACCOUNT }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ github.event.repository.name }}:runtime-${{ github.run_number }} | |
${{ env.AWS_ACCOUNT }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ github.event.repository.name }}:runtime |