Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-Lyard committed Jun 11, 2024
2 parents a10ed4b + e309267 commit 3ba6060
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ jobs:
name: publish docker images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
run: |
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{secrets.DOCKERHUB_USERNAME}} --password-stdin
- name: Checkout repository
uses: actions/checkout@v3

- name: Login to DockerHub
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

- name: Build and push server image
run: |
docker build -t $REGISTRY/$SERVER_IMAGE_NAME -f Dockerfile.production .
docker push $REGISTRY/$SERVER_IMAGE_NAME
- name: Build and push client image
run: |
docker build -t $REGISTRY/$CLIENT_IMAGE_NAME -f Dockerfile.production .
docker push $REGISTRY/$CLIENT_IMAGE_NAME
Expand All @@ -31,10 +37,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: SSH into remote server and deploy
uses: appleboy/ssh-action@v0.1.3
with:
host: ${{secrets.REMOTE_SSH_HOST}}
username: ${{secrets.REMOTE_SSH_USER}}
host: ${{ secrets.REMOTE_SSH_HOST }}
username: ${{ secrets.REMOTE_SSH_USER }}
password: ${{ secrets.REMOTE_SSH_PASSWORD }}
port: 22
script: |
Expand Down

0 comments on commit 3ba6060

Please sign in to comment.