Skip to content

Commit

Permalink
SB-07:fix: api service&command-service docker file issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
divyagovindaiah committed Oct 26, 2023
1 parent ccd451c commit 11682ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ jobs:
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/obsrv-api-service:${{ github.ref_name }}

docker-build-command-service:
needs: check-tag
if: needs.check-tag.outputs.ALLOWED_TAG == 'True'
runs-on: ubuntu-latest
steps:
- name: Login to docker hub
uses: docker/login-action@v1
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image and push
uses: docker/build-push-action@v2
with:
file: ./command-service/Dockerfile
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/flink-command-service:${{ github.ref_name }}
# docker-build-command-service:
# needs: check-tag
# if: needs.check-tag.outputs.ALLOWED_TAG == 'True'
# runs-on: ubuntu-latest
# steps:
# - name: Login to docker hub
# uses: docker/login-action@v1
# with:
# username: ${{ vars.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build docker image and push
# uses: docker/build-push-action@v2
# with:
# file: ./command-service/Dockerfile
# push: true
# tags: ${{ vars.DOCKERHUB_USERNAME }}/flink-command-service:${{ github.ref_name }}

# aws-deploy:
# needs: [check-tag, docker-build]
Expand Down
1 change: 1 addition & 0 deletions api-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ WORKDIR /opt/obsrv-api-service/
COPY api-service/package*.json ./
RUN npm install
COPY . .
RUN cp
EXPOSE 3000
CMD ["npm", "run", "start"]

0 comments on commit 11682ef

Please sign in to comment.