Skip to content

Commit

Permalink
test docker tag output
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Nov 27, 2024
1 parent 4848c13 commit 71e7844
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-deploy-ocr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@ jobs:
runs-on: ubuntu-latest
outputs:
docker_inspect: ${{ steps.image_check.outputs.docker_inspect }}
set_tag: ${{ steps.set_tag.outputs.docker_tag }}
steps:
- uses: actions/checkout@v4
- name: Lowercase the repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Set OCR Docker tag
shell: bash
id: set-environment
env:
DEPLOY_ENV: ${{ inputs.deploy-env }}
id: set_tag
run: |-
USER_INPUT="634fa0a0a12141b198e3f1544a9ccd320917efd3"
USER_INPUT=""
echo "docker_tag=$(
echo ${USER_INPUT:-"${{ github.sha }}"}
)" >> $GITHUB_ENV
)" >> $GITHUB_OUTPUT
- name: Check if image exists
id: image_check
run: |
Expand Down Expand Up @@ -76,6 +75,6 @@ jobs:
uses: ./.github/actions/deploy-api
with:
deploy-env: dev
docker-tag: ${{ env.docker_tag }}
docker-tag: ${{ needs.build-publish-ocr.outputs.docker_tag }}
docker-registry: ghcr.io
api-name: ocr-api
3 changes: 0 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Set OCR Docker tag
shell: bash
id: set-environment
env:
DEPLOY_ENV: ${{ inputs.deploy-env }}
run: |-
USER_INPUT=""
echo "docker_tag=$(
Expand Down

0 comments on commit 71e7844

Please sign in to comment.