Skip to content

Commit

Permalink
feat(ogbv-ml-rest): added github action to push image to dockerhub. C…
Browse files Browse the repository at this point in the history
…loses #128
  • Loading branch information
Bhargav-Dave authored Jul 7, 2022
1 parent 52c9aba commit 71ede9d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -23,6 +24,8 @@ jobs:
- 'annotators/annotation-ui/**/*'
uli-website:
- 'uli-website/**/*'
ogbv-ml-rest:
- 'ogbv-ml-rest/**/*'
annotation-ui:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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




31 changes: 31 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -20,6 +21,8 @@ jobs:
annotation-ui:
- 'annotators/backend/**/*'
- 'annotators/annotation-ui/**/*'
ogbv-ml-rest:
- 'ogbv-ml-rest/**/*'
annotation-ui:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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



0 comments on commit 71ede9d

Please sign in to comment.