build and push bundler-reverse-proxy and anvil-setup #4
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: Build and upload docker images for all services | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-upload-skandha: | |
uses: ./.github/workflows/build-and-upload-bundler-service.yaml | |
secrets: inherit | |
with: | |
bundler-name: skandha | |
build-and-upload-transeptor-bundler: | |
uses: ./.github/workflows/build-and-upload-bundler-service.yaml | |
secrets: inherit | |
with: | |
bundler-name: transeptor-bundler | |
build-and-upload: | |
name: Build and publish images | |
runs-on: ubuntu-latest | |
environment: dockerhub | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN_SECRET }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push anvil-setup | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
target: anvil-setup | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:anvil-setup-${{ github.sha }} | |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:anvil-setup-latest | |
- name: Build and push bundler-reverse-proxy | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
target: bundler-reverse-proxy | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:bundler-reverse-proxy-${{ github.sha }} | |
${{ secrets.DOCKER_HUB_ACCESS_TOKEN_USERNAME }}/aa-playground:bundler-reverse-proxy-latest | |