Skip to content

Commit 02d70c4

Browse files
Cisco OstermanCisco Osterman
andauthored
build(docker): Docker image versioning & name change (alerta#510)
* Docker image versioning and image name * Add version Co-authored-by: Cisco Osterman <[email protected]>
1 parent 485ec44 commit 02d70c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
env:
1414
REPOSITORY_URL: docker.pkg.github.com
15-
IMAGE_NAME: ${{ github.repository }}/alerta-beta
15+
IMAGE_NAME: ${{ github.repository }}/alerta-webui
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2
@@ -28,6 +28,7 @@ jobs:
2828
run: >-
2929
docker build
3030
-t $IMAGE_NAME
31+
-t $REPOSITORY_URL/$IMAGE_NAME:$(cat VERSION)
3132
-t $REPOSITORY_URL/$IMAGE_NAME:${{ steps.vars.outputs.SHORT_COMMIT_ID }}
3233
-t $REPOSITORY_URL/$IMAGE_NAME:latest .
3334
- uses: docker/login-action@v1
@@ -37,7 +38,7 @@ jobs:
3738
password: ${{ secrets.GITHUB_TOKEN }}
3839
- name: Publish Image
3940
id: docker-push
40-
run: docker push $REPOSITORY_URL/$IMAGE_NAME
41+
run: docker push --all-tags $REPOSITORY_URL/$IMAGE_NAME
4142

4243
- uses: act10ns/slack@v1
4344
with:

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.7.0

0 commit comments

Comments
 (0)