Skip to content

Commit

Permalink
ci/cd 👷
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammarmoulla committed Jul 24, 2023
1 parent 5fb6cf0 commit 4c237e7
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/CI_CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,15 @@ jobs:
run: |
docker build . --file Dockerfile --tag ammarmoulla/machine_translate:v1
docker run ammarmoulla/machine_translate:v1
<<<<<<< HEAD:.github/workflows/CI.yaml


push:
name: Push To Docker
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: build and push
run: |
docker build . --file Dockerfile --tag ammarmoulla/machine_translate:v1
=======
>>>>>>> dev:.github/workflows/CI_CD.yaml
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push ammarmoulla/machine_translate:v1
deploy:
name: RUN Web Serivce
runs-on: ubuntu-latest
needs: [test]
needs: [train]
steps:

- name: Pull and UP Fastapi
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
Expand Down

0 comments on commit 4c237e7

Please sign in to comment.