diff --git a/.github/workflows/build-custom-image.yaml b/.github/workflows/build-custom-image.yaml index ee1ce0c..c71201e 100644 --- a/.github/workflows/build-custom-image.yaml +++ b/.github/workflows/build-custom-image.yaml @@ -1,19 +1,31 @@ name: ci on: - push: - branches: - - 'main' - paths: - - 'Dockerfile' - - 'docker-entrypoint.sh' - - '.github/workflows/build-custom-image.yaml' - tags: - - 'v*' - pull_request: - branches: - - 'main' + # push: + # branches: + # - 'main' + # paths: + # - 'Dockerfile' + # - 'docker-entrypoint.sh' + # - '.github/workflows/build-custom-image.yaml' + # tags: + # - 'v*' + # pull_request: + # branches: + # - 'main' workflow_dispatch: + inputs: + tag: + description: 'Tag' + required: true + default: 'latest' + type: string + ghost_version: + description: 'Ghost version' + required: true + default: '5.0.0' + type: string + jobs: docker: @@ -91,3 +103,5 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + GHOST_VERSION=${{ github.event.inputs.ghost_version }} diff --git a/Dockerfile b/Dockerfile index 4e5b967..2ce6ca0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,8 +45,8 @@ RUN set -eux; \ ENV GHOST_INSTALL /var/lib/ghost ENV GHOST_CONTENT /var/lib/ghost/content -ARG GHOST_VERSION 5.52.0 -ENV $GHOST_VERSION +ARG GHOST_VERSION +ENV GHOST_VERSION $GHOST_VERSION RUN set -eux; \ mkdir -p "$GHOST_INSTALL"; \