Build Docker images #4138
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 Docker images | |
# This matches the Docker image building done in the release process. | |
# | |
# It is possible to use https://github.com/nektos/act to run this workflow. | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
# Run at 1:00 every day | |
- cron: 0 1 * * * | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: Build Docker images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- name: target-manager | |
- name: vws | |
- name: vwq | |
steps: | |
- 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: Build Docker image | |
uses: docker/build-push-action@v6.9.0 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
file: src/mock_vws/_flask_server/Dockerfile | |
push: false | |
target: ${{ matrix.image.name }} | |
tags: |- | |
adamtheturtle/vuforia-${{ matrix.image.name }}-mock:latest |