Skip to content

Commit 8a930ab

Browse files
committed
Add latest tag to Docker build explicitly (close #61)
1 parent 6506d08 commit 8a930ab

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,27 @@ jobs:
7171
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
7272
- name: Stage the Docker build
7373
run: sbt "project loader" docker:stage
74+
- name: Docker metadata
75+
id: meta
76+
uses: docker/metadata-action@v3
77+
with:
78+
images: snowplow/snowplow-postgres-loader
79+
tags: |
80+
type=raw,value=latest,enable=${{ !contains(steps.ver.outputs.tag, 'rc') }}
81+
type=raw,value=${{ steps.ver.outputs.tag }}
82+
flavor: |
83+
latest=false
7484
- name: Set up QEMU
7585
uses: docker/setup-qemu-action@v1
7686
- name: Set up Docker Buildx
7787
uses: docker/setup-buildx-action@v1
78-
- name: Build image
88+
- name: Push image
7989
uses: docker/build-push-action@v2
8090
with:
8191
context: modules/loader/target/docker/stage
8292
file: modules/loader/target/docker/stage/Dockerfile
8393
platforms: linux/amd64,linux/arm64/v8
84-
tags: snowplow/snowplow-postgres-loader:${{ steps.ver.outputs.tag }}
94+
tags: ${{ steps.meta.outputs.tags }}
8595
push: true
8696

8797
deploy_common:

0 commit comments

Comments
 (0)