Skip to content

Commit a033cbc

Browse files
authored
ci: Add tags to docker build (astarte-platform#1812)
fixes push Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
1 parent 62e9384 commit a033cbc

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/publish-release-to-dockerhub-workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
context: .
9999
file: apps/${{ matrix.app }}/Dockerfile
100100
push: true
101+
tags: astarte/${{ matrix.app }}
101102
platforms: ${{ matrix.platform.platform }}
102103
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
103104

.github/workflows/publish-snapshot-to-dockerhub-workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
context: .
114114
file: apps/${{ matrix.app }}/Dockerfile
115115
push: true
116+
tags: astarte/${{ matrix.app }}
116117
platforms: ${{ matrix.platform.platform }}
117118
cache-from: type=gha,scope=${{ matrix.app.name }}-${{ env.BRANCH_SLUG }}
118119
cache-to: type=gha,mode=max,scope=${{ matrix.app.name }}-${{ env.BRANCH_SLUG }}

.github/workflows/publish-tool-release-to-dockerhub-workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
context: ${{ matrix.app.context }}
5959
file: ${{ matrix.app.file }}
6060
push: true
61+
tags: astarte/${{ matrix.app.tool }}
6162
platforms: ${{ matrix.platform.platform }}
6263
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
6364

.github/workflows/publish-tool-snapshot-to-dockerhub-workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
context: ${{ matrix.app.context }}
7272
file: ${{ matrix.app.file }}
7373
push: true
74+
tags: astarte/${{ matrix.app.tool }}
7475
platforms: ${{ matrix.platform.platform }}
7576
cache-from: type=gha,scope=${{ matrix.app.tool }}-${{ env.BRANCH_SLUG }}
7677
cache-to: type=gha,mode=max,scope=${{ matrix.app.tool }}-${{ env.BRANCH_SLUG }}

0 commit comments

Comments
 (0)