Skip to content

Commit

Permalink
update github-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dangnak2 committed Oct 8, 2023
1 parent 04cfe52 commit 22da195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
if: contains(github.ref, 'develop')
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile-dev -t ${{ secrets.DOCKER_REPO }}/pladi-dev .
docker push ${{ secrets.DOCKER_REPO }}/pladi-dev
docker build -f Dockerfile-dev -t ${{ secrets.DOCKER_REPO }}/pladi-archiving .
docker push ${{ secrets.DOCKER_REPO }}/pladi-archiving
## deploy to production
- name: Deploy to prod
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
#key: ${{ secrets.PRIVATE_KEY }}
script: |
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/pladi-dev
sudo docker pull ${{ secrets.DOCKER_REPO }}/pladi-archiving
docker-compose up -d
docker image prune -f
Expand Down

0 comments on commit 22da195

Please sign in to comment.