Skip to content

Commit

Permalink
Update release-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror authored Nov 5, 2023
1 parent eccfc46 commit c65a667
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Release Docker Image
on:
workflow_call:
inputs:
release:
required: true
type: string
release:
types:
- published

jobs:

Expand All @@ -15,7 +13,7 @@ jobs:
- name: Get version without v character
id: version
run: |
VERSION=${{ inputs.release }}
VERSION=${{ github.event.release.tag_name }}
VERSION_WITHOUT_V=${VERSION:1}
echo "value=${VERSION_WITHOUT_V}" >> $GITHUB_OUTPUT
Expand All @@ -31,6 +29,10 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# This workflow triggers on GitHub Release, but it may start before the npm package is published.
- name: Sleep for 1s seconds
run: sleep 1s

- name: Build Image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit c65a667

Please sign in to comment.