diff --git a/.github/workflows/ci-cd-develop.yml b/.github/workflows/ci-cd-develop.yml index 7aed77c3..b3401ff8 100644 --- a/.github/workflows/ci-cd-develop.yml +++ b/.github/workflows/ci-cd-develop.yml @@ -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 + + diff --git a/BE-hubo-gillajabi-resources b/BE-hubo-gillajabi-resources index 1c5a47aa..7c1efb07 160000 --- a/BE-hubo-gillajabi-resources +++ b/BE-hubo-gillajabi-resources @@ -1 +1 @@ -Subproject commit 1c5a47aa648e05f0bdbdfad696b97d51300bed1b +Subproject commit 7c1efb0782209e9e771f4f2a1a91b9b40fe662f4