Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: SurabhiAngadi <[email protected]>
  • Loading branch information
SurabhiAngadi committed Jan 22, 2024
1 parent 8344606 commit 0680fe3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,26 @@ jobs:
if: needs.verify-tags.outputs.ALLOWED_TAG == 'True'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Change directory to command-service
run: cd command-service

- name: Login to docker hub
uses: docker/login-action@v3
with:
# username: ${{ vars.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
username: sanketikahub
password: mxP17gAtFOOn
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# username: sanketikahub
# password: mxP17gAtFOOn
- name: Build docker image and push
uses: docker/build-push-action@v4
with:
file: ./command-service/Dockerfile
file: ./Dockerfile
push: true
# tags: ${{ vars.DOCKERHUB_USERNAME }}/obsrv-command-service:${{ github.ref_name }}
tags: sanketikahub/obsrv-command-service:1.0
tags: ${{ vars.DOCKERHUB_USERNAME }}/obsrv-command-service:${{ github.ref_name }}
# tags: sanketikahub/obsrv-command-service:1.0

aws-deploy:
needs: [ verify-tags,api-service, command-service]
Expand Down
2 changes: 1 addition & 1 deletion command-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN apk upgrade
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src .
COPY src ./src
WORKDIR /app/src
CMD [ "uvicorn", "routes:app", "--host", "0.0.0.0" ]

0 comments on commit 0680fe3

Please sign in to comment.