Skip to content

Commit

Permalink
fix docker GitHub Action when workflow dispatch is not manually run
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Oct 6, 2023
1 parent 8118038 commit c8138ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Expand Up @@ -15,6 +15,9 @@ on:

jobs:
build:
env:
DOCKER_BUILD_TAG: ${{ github.event.inputs.tag || 'latest' }}

runs-on: ubuntu-20.04

steps:
Expand All @@ -38,4 +41,4 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: overtrue/phplint:${{ github.event.inputs.tag }}
tags: overtrue/phplint:${{ env.DOCKER_BUILD_TAG }}

0 comments on commit c8138ba

Please sign in to comment.