Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 29, 2024
1 parent 8185d29 commit ed944d9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build-deploy-ocr.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Create, publish, deploy a OCR API image

on:
push:
branches: fix-docker-image-check
# workflow_dispatch:
# inputs:
# tag:
# description: 'Version tag for new release'
# required: true
workflow_dispatch:
inputs:
tag:
description: 'Version tag for new release'
required: true

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -39,7 +37,7 @@ jobs:
id: image_check
run: |
echo "docker_inspect=$(
docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:demo-test-env-derek1 > /dev/null ; echo $?
docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }} > /dev/null ; echo $?
)" >> $GITHUB_OUTPUT
- name: Build and push Docker image
id: push
Expand All @@ -49,7 +47,7 @@ jobs:
context: ./OCR/
file: ./OCR/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:demo-test-env-derek1
tags: ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }}

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ed944d9

Please sign in to comment.