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 45cc633 + 237540b commit d166705
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
workflow_dispatch:

env:
REGISTRY: dockerhub.io
SERVER_IMAGE_NAME: prochainweb-server:latest
CLIENT_IMAGE_NAME: prochainweb-client:latest

Expand All @@ -23,14 +22,13 @@ jobs:

- name: Build and push server image
run: |
docker build -t $REGISTRY/${{ secrets.DOCKERHUB_USERNAME }}/$SERVER_IMAGE_NAME -f server/Dockerfile.production server/
docker push $REGISTRY/${{ secrets.DOCKERHUB_USERNAME }}/$SERVER_IMAGE_NAME
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/$SERVER_IMAGE_NAME -f server/Dockerfile.production server/
docker push ${{ secrets.DOCKERHUB_USERNAME }}/$SERVER_IMAGE_NAME
- name: Build and push client image
run: |
cd client
docker build -t $REGISTRY/${{ secrets.DOCKERHUB_USERNAME }}/$CLIENT_IMAGE_NAME -f client/Dockerfile.production client/
docker push $REGISTRY/${{ secrets.DOCKERHUB_USERNAME }}/$CLIENT_IMAGE_NAME
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/$CLIENT_IMAGE_NAME -f client/Dockerfile.production client/
docker push ${{ secrets.DOCKERHUB_USERNAME }}/$CLIENT_IMAGE_NAME
deploy:
needs: publish
Expand Down

0 comments on commit d166705

Please sign in to comment.