diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 15fd60bcad4..5e215fd3a96 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -1,10 +1,8 @@ name: Release Docker Image on: - workflow_call: - inputs: - release: - required: true - type: string + release: + types: + - published jobs: @@ -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 @@ -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: