Skip to content

Commit

Permalink
build command service
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 30eb9ae commit 4728d9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ jobs:
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# 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
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/flink-command-service:${{ github.ref_name }}
# 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
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10
node-version: 'latest'

- name: Checkout code
uses: actions/checkout@v2

- name: Run test cases
run: |
cd api-service/src/test
cd api-service
npm install
npm run test
4 changes: 2 additions & 2 deletions command-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apk update && apk add curl jq && curl -LO "https://dl.k8s.io/release/$(curl
RUN apk add libcrypto3=3.1.4-r4
RUN apk upgrade
WORKDIR /app
COPY command-service/requirements.txt .
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY command-service/src ./src
COPY src ./src
WORKDIR /app/src
CMD [ "uvicorn", "routes:app", "--host", "0.0.0.0" ]

0 comments on commit 4728d9e

Please sign in to comment.