Skip to content

Commit

Permalink
Fix build tags (#680)
Browse files Browse the repository at this point in the history
* Fix remaining tag issues

This fixes the remaining container tag issues:
 - Missing "v" before version string
 - Typo in docker buildx imagetools command (missing "s" to imagetools)
 - Remove "-handler" suffix to container names for discovery handlers

Signed-off-by: Nicolas Belouin <[email protected]>

* Update patch version

Signed-off-by: Nicolas Belouin <[email protected]>

---------

Signed-off-by: Nicolas Belouin <[email protected]>
  • Loading branch information
diconico07 committed Nov 16, 2023
1 parent 0e834a6 commit 9fe0150
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-opcua-monitoring-broker-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
org.opencontainers.image.description="Akri sample OPC UA monitoring broker"
tags: |
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=${{steps.version-string.outputs.version}},enable=${{github.event_name != 'release'}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=raw,value=v${{steps.version-string.outputs.version}}-dev,enable=${{github.event_name != 'release'}}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-python-app-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:
org.opencontainers.image.description=Akri Sample App
tags: |
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=${{steps.version-string.outputs.version}},enable=${{github.event_name != 'release'}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=raw,value=v${{steps.version-string.outputs.version}}-dev,enable=${{github.event_name != 'release'}}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/build-rust-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
org.opencontainers.image.title=akri-${{matrix.component.label}}
tags: |
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=${{steps.version-string.outputs.version}},enable=${{github.event_name != 'release'}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=raw,value=v${{steps.version-string.outputs.version}}-dev,enable=${{github.event_name != 'release'}}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -126,6 +126,7 @@ jobs:
id: version-string
run: |
echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT
echo "component_tag=$(echo "${{ matrix.component.label }}" | sed 's/-handler$//')" >> $GITHUB_OUTPUT
- name: Cache Docker layers
uses: actions/cache/restore@v3
Expand All @@ -151,14 +152,14 @@ jobs:
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/project-akri/akri/${{ matrix.component.label }}
images: ghcr.io/project-akri/akri/${{steps.version-string.outputs.component_tag}}
labels: |
org.opencontainers.image.title=akri-${{matrix.component.label}}
tags: |
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=${{steps.version-string.outputs.version}},enable=${{github.event_name != 'release'}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=raw,value=v${{steps.version-string.outputs.version}}-dev,enable=${{github.event_name != 'release'}}
- name: Build and push
uses: docker/build-push-action@v5
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agent/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agent"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>", "<[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion build/samples.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ onvif-video-broker: onvif-video-broker-multiarch

onvif-video-broker-multiarch: onvif-video-broker-amd64 onvif-video-broker-arm64 onvif-video-broker-arm32
ifeq (1, $(PUSH))
docker buildx imagetool create --tag "$(PREFIX)/onvif-video-broker:$(LABEL_PREFIX)"
docker buildx imagetools create --tag "$(PREFIX)/onvif-video-broker:$(LABEL_PREFIX)"
endif

ONVIF_BUILDX_PUSH_OUTPUT = type=image,name=$(PREFIX)/onvif-video-broker,push-by-digest=true,name-canonical=true,push=true
Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["<[email protected]>", "<[email protected]>"]
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.12.17
version: 0.12.18

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.12.17
appVersion: 0.12.18
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/debug-echo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-debug-echo"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/onvif/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-onvif"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/opcua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-opcua"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/udev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-udev"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-discovery-utils"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion samples/brokers/udev-video-broker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-video-broker"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["Kate Goldenring <[email protected]>", "<[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-shared"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["<[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.17
0.12.18
2 changes: 1 addition & 1 deletion webhooks/validating/configuration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webhook-configuration"
version = "0.12.17"
version = "0.12.18"
license = "Apache-2.0"
authors = ["DazWilkin <[email protected]>"]
edition = "2018"
Expand Down

0 comments on commit 9fe0150

Please sign in to comment.