Skip to content

Commit

Permalink
Fix release github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Mar 18, 2023
1 parent 0d95ad6 commit 46e1d4a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
test:
name: Test
name: Tests
uses: alerta/docker-alerta/.github/workflows/tests.yml@master
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -25,7 +25,7 @@ jobs:
IMAGE_NAME: alerta/alerta-web

steps:
- actions/checkout@v3
- uses: actions/checkout@v3
- name: Build Image
id: docker-build
run: >-
Expand All @@ -45,10 +45,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish Image
id: docker-push
run: |
docker push $REPOSITORY_URL/$IMAGE_NAME:$(cat VERSION)
docker push $REPOSITORY_URL/$IMAGE_NAME:${{ steps.vars.outputs.SHORT_COMMIT_ID }}
docker push $REPOSITORY_URL/$IMAGE_NAME:latest
run: docker push --all tags $REPOSITORY_URL/$IMAGE_NAME

- uses: act10ns/slack@v2
with:
Expand Down

0 comments on commit 46e1d4a

Please sign in to comment.