Skip to content

Commit 6f03034

Browse files
Merge pull request #1043 from VWS-Python/docker-build-github-workflow
Add a CI job to build Docker images, so we can iterate on that withou…
2 parents 6bff4c7 + 838b37a commit 6f03034

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
3+
name: Build Docker images
4+
5+
# This matches the Docker image building done in the release process.
6+
7+
on:
8+
push:
9+
branches: [master]
10+
pull_request:
11+
branches: [master]
12+
schedule:
13+
# * is a special character in YAML so you have to quote this string
14+
# Run at 1:00 every day
15+
- cron: '0 1 * * *'
16+
17+
jobs:
18+
build:
19+
name: Build Docker images
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Build base Docker image
26+
uses: docker/[email protected]
27+
with:
28+
file: src/mock_vws/_flask_server/dockerfiles/base/Dockerfile
29+
push: false
30+
tags: |
31+
vws-mock:base
32+
33+
- name: Build and push target manager Docker image
34+
uses: docker/[email protected]
35+
with:
36+
file: src/mock_vws/_flask_server/dockerfiles/target_manager/Dockerfile
37+
push: false
38+
tags: |
39+
adamtheturtle/vuforia-target-manager-mock:latest
40+
41+
- name: Build and push VWS Docker image
42+
uses: docker/[email protected]
43+
with:
44+
file: src/mock_vws/_flask_server/dockerfiles/vws/Dockerfile
45+
push: false
46+
tags: |
47+
adamtheturtle/vuforia-vws-mock:latest
48+
49+
- name: Build and push VWQ Docker image
50+
uses: docker/[email protected]
51+
with:
52+
file: src/mock_vws/_flask_server/dockerfiles/vwq/Dockerfile
53+
push: false
54+
tags: |
55+
adamtheturtle/vuforia-vwq-mock:latest

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ ignore_path = [
184184
# We use a fallback version like
185185
# https://github.com/pypa/setuptools_scm/issues/77 so that we do not
186186
# error in the Docker build stage of the release pipeline.
187-
fallback_version = "FALLBACK_VERSION"
187+
#
188+
# This must be a PEP 440 compliant version.
189+
fallback_version = "0.0.0"
188190

189191

190192
[tool.pydocstyle]

0 commit comments

Comments
 (0)