Skip to content

Commit

Permalink
feat: build-and-push
Browse files Browse the repository at this point in the history
  • Loading branch information
haroya01 committed Jul 24, 2024
1 parent c1b5000 commit 4239451
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ jobs:

- name: build and push docker image
run: |
docker build -f Dockerfile-dev --platform linux/arm64/v8 -t ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:$TAG .
docker build -f Dockerfile-dev --platform linux/amd64 -t ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:$TAG .
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:$TAG
deploy:
needs: build-and-push
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.BE_HOST }}
username: ${{ secrets.BE_USER }}
port: ${{ secrets.BE_PORT }}
key: ${{ secrets.BE_PW }}
script: |
cd hubo
sudo docker-compose down
sudo docker-compose pull
sudo docker-compose up -d


2 changes: 1 addition & 1 deletion BE-hubo-gillajabi-resources

0 comments on commit 4239451

Please sign in to comment.