Skip to content

Commit

Permalink
build(docker): Use correct docker image path
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Dec 6, 2021
1 parent 02d70c4 commit e7575af
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: docker-build-push
name: Docker

on:
push:
branches: [ master, release/* ]
tags: [ '**' ]

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

jobs:
build:
name: Build & Push
runs-on: ubuntu-latest
env:
REPOSITORY_URL: docker.pkg.github.com
IMAGE_NAME: ${{ github.repository }}/alerta-webui
REPOSITORY_URL: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/alerta-webui
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -31,7 +33,8 @@ jobs:
-t $REPOSITORY_URL/$IMAGE_NAME:$(cat VERSION)
-t $REPOSITORY_URL/$IMAGE_NAME:${{ steps.vars.outputs.SHORT_COMMIT_ID }}
-t $REPOSITORY_URL/$IMAGE_NAME:latest .
- uses: docker/login-action@v1
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ${{ env.REPOSITORY_URL }}
username: ${{ github.actor }}
Expand Down

0 comments on commit e7575af

Please sign in to comment.