Skip to content

Commit

Permalink
try outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 8, 2024
1 parent f4a0e5d commit fc7655c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/actions/build-publish-ocr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ inputs:
token:
description: Github Token
required: true
registered:
description: image registered or not
required: true

runs:
using: composite
steps:
Expand All @@ -24,13 +22,8 @@ runs:
- name: Lowercase the repo name
shell: bash
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Check if image exists
shell: bash
id: image_check
run: docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }} > /dev/null ; echo $?
- name: Build and push Docker image
id: push
if: ${{ inputs.registered }} == 1
uses: docker/build-push-action@v6
with:
context: ./OCR/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
run: docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }} > /dev/null ; echo $?
- name: Build and Push backend
uses: ./.github/actions/build-publish-ocr
if: steps.image_check.outcome == 1
with:
deploy_env: ${{ env.deploy_env }}
token: ${{ secrets.GITHUB_TOKEN }}
registered: ${{ steps.image_check.outcome }}

# build_frontend:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit fc7655c

Please sign in to comment.