Skip to content

Commit e7575af

Browse files
committed
build(docker): Use correct docker image path
1 parent 02d70c4 commit e7575af

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
name: docker-build-push
1+
name: Docker
22

33
on:
44
push:
55
branches: [ master, release/* ]
6+
tags: [ '**' ]
67

78
env:
89
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
910

1011
jobs:
1112
build:
13+
name: Build & Push
1214
runs-on: ubuntu-latest
1315
env:
14-
REPOSITORY_URL: docker.pkg.github.com
15-
IMAGE_NAME: ${{ github.repository }}/alerta-webui
16+
REPOSITORY_URL: ghcr.io
17+
IMAGE_NAME: ${{ github.repository_owner }}/alerta-webui
1618
steps:
1719
- name: Checkout
1820
uses: actions/checkout@v2
@@ -31,7 +33,8 @@ jobs:
3133
-t $REPOSITORY_URL/$IMAGE_NAME:$(cat VERSION)
3234
-t $REPOSITORY_URL/$IMAGE_NAME:${{ steps.vars.outputs.SHORT_COMMIT_ID }}
3335
-t $REPOSITORY_URL/$IMAGE_NAME:latest .
34-
- uses: docker/login-action@v1
36+
- name: Docker Login
37+
uses: docker/login-action@v1
3538
with:
3639
registry: ${{ env.REPOSITORY_URL }}
3740
username: ${{ github.actor }}

0 commit comments

Comments
 (0)