diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 9bf82d4f..a3784a83 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -10,6 +10,7 @@ jobs: outputs: annotation-ui: ${{ steps.filter.outputs.annotation-ui }} uli-website: ${{ steps.filter.outputs.uli-website}} + ogbv-ml-rest: ${{ steps.filter.outputs.ogbv-ml-rest }} steps: - uses: actions/checkout@v2 with: @@ -23,6 +24,8 @@ jobs: - 'annotators/annotation-ui/**/*' uli-website: - 'uli-website/**/*' + ogbv-ml-rest: + - 'ogbv-ml-rest/**/*' annotation-ui: runs-on: ubuntu-latest @@ -95,5 +98,33 @@ jobs: SLACK_TITLE: 'deploy-production workflow complete' SLACK_COLOR: '#020637' SLACK_ICON: https://tattle-media.s3.amazonaws.com/monogram-dark.svg + + ogbv-ml-rest: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.ogbv-ml-rest == 'true' }} + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: main + + - name: Declare some variables + id: vars + shell: bash + run: | + echo "setting variables" + echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + + - name: Build and Push to Docker + uses: elgohr/Publish-Docker-Github-Action@master + with: + username: tattletech + password: ${{ secrets.DOCKER_PASSWORD }} + name: tattletech/ogbv_annotator + tags: ${{ steps.vars.outputs.sha_short }} + workdir: ogbv-ml-rest + + diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 98caa166..4782374d 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -9,6 +9,7 @@ jobs: runs-on: ubuntu-latest outputs: annotation-ui: ${{ steps.filter.outputs.annotation-ui }} + ogbv-ml-rest: ${{ steps.filter.outputs.ogbv-ml-rest }} steps: - uses: actions/checkout@v2 with: @@ -20,6 +21,8 @@ jobs: annotation-ui: - 'annotators/backend/**/*' - 'annotators/annotation-ui/**/*' + ogbv-ml-rest: + - 'ogbv-ml-rest/**/*' annotation-ui: runs-on: ubuntu-latest @@ -61,3 +64,31 @@ jobs: version: v1.21.0 # specify kubectl binary version explicitly command: rollout status deployment/annotation-ui-staging + ogbv-ml-rest: + runs-on: ubuntu-latest + needs: changes + if: ${{ needs.changes.outputs.ogbv-ml-rest == 'true' }} + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: development + + - name: Declare some variables + id: vars + shell: bash + run: | + echo "setting variables" + echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + + - name: Build and Push to Docker + uses: elgohr/Publish-Docker-Github-Action@master + with: + username: tattletech + password: ${{ secrets.DOCKER_PASSWORD }} + name: tattletech/ogbv_annotator + tags: ${{ steps.vars.outputs.sha_short }} + workdir: ogbv-ml-rest + + +