Skip to content

Commit

Permalink
allow to push other docker image tag than default
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Oct 4, 2023
1 parent 49a5059 commit 07eba9a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Docker

on:
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
inputs:
tag:
description: "The Docker Image Tag"
required: false
default: "latest"
type: string
push:
branches:
- 'main'
Expand Down Expand Up @@ -31,4 +38,4 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: overtrue/phplint:latest
tags: overtrue/phplint:${{ github.event.inputs.tag }}

0 comments on commit 07eba9a

Please sign in to comment.