Skip to content

Commit

Permalink
add suffix when building manually
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 30, 2024
1 parent a2720a3 commit 7025697
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci-build-manual-crf.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Build and push a CRF-only docker image

on:
workflow_dispatch:

on:
workflow_dispatch:
inputs:
suffix:
type: string
description: Docker image suffix (e.g. develop, crf, full)
required: false

jobs:
build:
Expand Down Expand Up @@ -37,6 +41,8 @@ jobs:
image: lfoppiano/grobid
registry: docker.io
pushImage: true
tags: latest-develop, latest-crf
tags: |
latest-develop${{ github.event.inputs.suffix && '-' + github.event.inputs.suffix || '' }}
latest-crf${{ github.event.inputs.suffix && '-' + github.event.inputs.suffix || '' }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 7025697

Please sign in to comment.