Skip to content

Commit

Permalink
build: allow rebuild docker image manually by github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanpt-0634 committed Aug 21, 2024
1 parent 00b2887 commit 7e9ae45
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-docker-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Build and publish PHP Docker image
on:
release:
types: [published]
workflow_dispatch:
inputs:
note:
description: 'Additional note (display on action summary)'
required: false
type: string

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -41,3 +47,10 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Update action summary
run: |
echo "" >> $GITHUB_STEP_SUMMARY # this is a blank line
if [[ "${{ inputs.note }}" != "" ]]; then
echo "> Note: ${{ inputs.note }}" >> $GITHUB_STEP_SUMMARY
fi

0 comments on commit 7e9ae45

Please sign in to comment.