diff --git a/.github/workflows/build-deploy-ocr.yml b/.github/workflows/build-deploy-ocr.yml index 527f9bbc..ef84f5f1 100644 --- a/.github/workflows/build-deploy-ocr.yml +++ b/.github/workflows/build-deploy-ocr.yml @@ -1,18 +1,20 @@ name: Create, publish, deploy a OCR API image on: - workflow_dispatch: - inputs: - deploy-env: - description: 'The environment to deploy to' - required: true - type: choice - options: - - dev - - demo - ocr-docker-tag: - description: 'This is optional if you would like to deploy an already published OCR-API image' - required: false + push: + branches: put-middle-behind-app-gateway + # workflow_dispatch: + # inputs: + # deploy-env: + # description: 'The environment to deploy to' + # required: true + # type: choice + # options: + # - dev + # - demo + # ocr-docker-tag: + # description: 'This is optional if you would like to deploy an already published OCR-API image' + # required: false permissions: contents: read @@ -35,7 +37,7 @@ jobs: shell: bash id: set_tag run: | - USER_INPUT="${{ github.event.inputs.ocr-docker-tag }}" + USER_INPUT="" echo "docker_tag=$( #this gives a new sha as default if dispatch input is empty echo ${USER_INPUT:-"${{ github.sha }}"} @@ -61,7 +63,7 @@ jobs: deploy-ocr: name: Deploy OCR runs-on: ubuntu-latest - environment: ${{ inputs.deploy-env }} + environment: dev needs: [build-publish-ocr] steps: - uses: actions/checkout@v4 @@ -73,7 +75,7 @@ jobs: - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: - deploy-env: ${{ inputs.deploy-env }} + deploy-env: dev docker-tag: ${{ needs.build-publish-ocr.outputs.docker_tag }} docker-registry: ghcr.io api-name: ocr