Skip to content

Add a CI job to build Docker images, so we can iterate on that withou… #1043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---

name: Build Docker images

# This matches the Docker image building done in the release process.

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# * is a special character in YAML so you have to quote this string
# Run at 1:00 every day
- cron: '0 1 * * *'

jobs:
build:
name: Build Docker images
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build base Docker image
uses: docker/build-push-action@v2.7.0
with:
file: src/mock_vws/_flask_server/dockerfiles/base/Dockerfile
push: false
tags: |
vws-mock:base

- name: Build and push target manager Docker image
uses: docker/build-push-action@v2.7.0
with:
file: src/mock_vws/_flask_server/dockerfiles/target_manager/Dockerfile
push: false
tags: |
adamtheturtle/vuforia-target-manager-mock:latest

- name: Build and push VWS Docker image
uses: docker/build-push-action@v2.7.0
with:
file: src/mock_vws/_flask_server/dockerfiles/vws/Dockerfile
push: false
tags: |
adamtheturtle/vuforia-vws-mock:latest

- name: Build and push VWQ Docker image
uses: docker/build-push-action@v2.7.0
with:
file: src/mock_vws/_flask_server/dockerfiles/vwq/Dockerfile
push: false
tags: |
adamtheturtle/vuforia-vwq-mock:latest
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ ignore_path = [
# We use a fallback version like
# https://github.com/pypa/setuptools_scm/issues/77 so that we do not
# error in the Docker build stage of the release pipeline.
fallback_version = "FALLBACK_VERSION"
#
# This must be a PEP 440 compliant version.
fallback_version = "0.0.0"


[tool.pydocstyle]
Expand Down