Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 9b7a408

Browse files
author
Chris Wiechmann
committed
Create a new latest Docker-Image on every successful build.
1 parent d350716 commit 9b7a408

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/traffic-monitor-api.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ jobs:
4848
npm ci
4949
npm run build --if-present
5050
npm test
51+
- name: Publish Docker image
52+
uses: elgohr/Publish-Docker-Github-Action@2.13
53+
with:
54+
name: cwiechmann/elk-traffic-monitor-api
55+
workdir: ${{env.workingDirectory}}
56+
username: ${{ secrets.DOCKER_USERNAME }}
57+
password: ${{ secrets.DOCKER_PASSWORD }}
58+
tags: "latest"
59+
5160
publish:
5261
if: github.event.action == 'published'
5362
env:
@@ -68,5 +77,5 @@ jobs:
6877
workdir: ${{env.workingDirectory}}
6978
username: ${{ secrets.DOCKER_USERNAME }}
7079
password: ${{ secrets.DOCKER_PASSWORD }}
71-
tags: "latest,${{ env.RELEASE_VERSION }}"
80+
tags: "${{ env.RELEASE_VERSION }}"
7281

0 commit comments

Comments
 (0)