Skip to content

Commit

Permalink
Update Client-DEV-CD.yml (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobkaeHenry authored Nov 26, 2023
1 parent 565aeaf commit 5ccd959
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/Client-DEV-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ jobs:
- name: Docker Setup Buildx
uses: docker/[email protected]

- name: Build Docker Image
run: docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile --build-arg NEXT_PUBLIC_BASE_URL=${{secrets.NEXT_PUBLIC_BASE_URL}} --build-arg NEXT_PUBLIC_CLIENT_BASE_URL=${{secrets.NEXT_PUBLIC_CLIENT_BASE_URL}} --build-arg PORT=${{secrets.CLIENT_DEV_PORT}} -t ${{ secrets.CLIENT_STORYBOOK_REPO }}/${{ secrets.CLIENT_DEV_SERVICE_NAME }}:latest .
working-directory: ./client

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.CLIENT_DOCKER_USERNAME }}
password: ${{ secrets.CLIENT_DOCKER_PASSWORD }}

- name: Push Image to Dockerhub
run: docker push ${{ secrets.CLIENT_STORYBOOK_REPO }}/${{ secrets.CLIENT_DEV_SERVICE_NAME }}:latest
- name: Build Docker Image
run: docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile --build-arg NEXT_PUBLIC_BASE_URL=${{secrets.NEXT_PUBLIC_BASE_URL}} --build-arg NEXT_PUBLIC_CLIENT_BASE_URL=${{secrets.NEXT_PUBLIC_CLIENT_BASE_URL}} --build-arg PORT=${{secrets.CLIENT_DEV_PORT}} -t ${{ secrets.CLIENT_STORYBOOK_REPO }}/${{ secrets.CLIENT_DEV_SERVICE_NAME }}:latest --push .
working-directory: ./client

- name: executing remote ssh commands using password
uses: appleboy/[email protected]
Expand Down

0 comments on commit 5ccd959

Please sign in to comment.