Skip to content

Commit

Permalink
allow github actions to manually push specific tagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 17, 2024
1 parent a95d253 commit dc91aa4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-build-manual-crf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Build and push a CRF-only docker image
on:
workflow_dispatch:
inputs:
suffix:
custom_tag:
type: string
description: Docker image suffix (e.g. develop, crf, full)
required: false
description: Docker image tag
required: true
default: "latest-crf"

jobs:
build:
Expand Down Expand Up @@ -42,6 +43,6 @@ jobs:
registry: docker.io
pushImage: true
tags: |
latest-develop, latest-crf${{ github.event.inputs.suffix != '' && '-' || '' }}${{ github.event.inputs.suffix }}
latest-develop, ${{ github.event.inputs.custom_tag}}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
12 changes: 9 additions & 3 deletions .github/workflows/ci-build-manual-full.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Build and push a full docker image

on: "workflow_dispatch"

on:
workflow_dispatch:
inputs:
custom_tag:
type: string
description: Docker image tag
required: true
default: "latest-full"

jobs:
build:
Expand Down Expand Up @@ -35,7 +41,7 @@ jobs:
image: lfoppiano/grobid
registry: docker.io
pushImage: true
tags: latest-full
tags: latest-full, ${{ github.event.inputs.custom_tag}}
dockerfile: Dockerfile.delft
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit dc91aa4

Please sign in to comment.