Skip to content
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
33 changes: 7 additions & 26 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ jobs:
name: Build Docker images
runs-on: ubuntu-latest

strategy:
matrix:
image:
- name: target-manager
- name: vws
- name: vwq

steps:
- uses: actions/checkout@v6
with:
Expand All @@ -41,24 +34,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v6.19.2
- name: Check Docker bake definition
uses: docker/bake-action@v6.10.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
call: check

completion-docker:
needs: build
runs-on: ubuntu-latest
if: always() # Run even if one matrix job fails
steps:
- name: Check matrix job status
run: |-
if ! ${{ needs.build.result == 'success' }}; then
echo "One or more matrix jobs failed"
exit 1
fi
- name: Build Docker images
uses: docker/bake-action@v6.10.0
with:
push: false
24 changes: 5 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,10 @@ jobs:
verbose: true

docker:
name: Publish Docker image (${{ matrix.image.target }})
name: Publish Docker images
needs: release
runs-on: ubuntu-latest

strategy:
matrix:
image:
- target: target-manager
repo: adamtheturtle/vuforia-target-manager-mock
- target: vws
repo: adamtheturtle/vuforia-vws-mock
- target: vwq
repo: adamtheturtle/vuforia-vwq-mock

permissions: {}

steps:
Expand All @@ -169,13 +159,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build and push Docker image
uses: docker/build-push-action@v6.19.2
- name: Build and push Docker images
uses: docker/bake-action@v6.10.0
with:
file: src/mock_vws/_flask_server/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
target: ${{ matrix.image.target }}
tags: |-
${{ matrix.image.repo }}:latest
${{ matrix.image.repo }}:${{ needs.release.outputs.version }}
env:
VERSION: ${{ needs.release.outputs.version }}
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,11 @@ repos:
language: python
types_or: [markdown, rst]
additional_dependencies: [uv==0.9.5]

- id: hclfmt
name: hclfmt
entry: hclfmt -w
language: golang
types: [hcl]
additional_dependencies: [github.com/hashicorp/hcl/v2/cmd/hclfmt@v2.24.0]
stages: [pre-commit]
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
Next
----

2026.02.15.5
------------


2026.02.15.4
------------

Expand Down
39 changes: 39 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
variable "VERSION" {
default = "latest"
}

group "default" {
targets = ["vws", "vwq", "target-manager"]
}

target "_base" {
dockerfile = "src/mock_vws/_flask_server/Dockerfile"
platforms = ["linux/amd64", "linux/arm64"]
}

target "vws" {
inherits = ["_base"]
target = "vws"
tags = [
"adamtheturtle/vuforia-vws-mock:latest",
"adamtheturtle/vuforia-vws-mock:${VERSION}",
]
}

target "vwq" {
inherits = ["_base"]
target = "vwq"
tags = [
"adamtheturtle/vuforia-vwq-mock:latest",
"adamtheturtle/vuforia-vwq-mock:${VERSION}",
]
}

target "target-manager" {
inherits = ["_base"]
target = "target-manager"
tags = [
"adamtheturtle/vuforia-target-manager-mock:latest",
"adamtheturtle/vuforia-target-manager-mock:${VERSION}",
]
}