diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 267a0f41..a5f95d4a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,21 +1,21 @@ -name: remote ssh command -on: - push: - branches: [main] -jobs: +# name: remote ssh command +# on: +# push: +# branches: [main] +# jobs: - build: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - script: | - cd ${{ secrets.REPO }} - git pull - docker-compose -f docker-compose.prod.yml restart +# build: +# name: Deploy +# runs-on: ubuntu-latest +# steps: +# - name: executing remote ssh commands using password +# uses: appleboy/ssh-action@master +# with: +# host: ${{ secrets.HOST }} +# username: ${{ secrets.USERNAME }} +# password: ${{ secrets.PASSWORD }} +# port: ${{ secrets.PORT }} +# script: | +# cd ${{ secrets.REPO }} +# git pull +# docker-compose -f docker-compose.prod.yml restart diff --git a/.github/workflows/dockerhub-publish.yml b/.github/workflows/dockerhub-publish.yml index f89616db..4f2a74ea 100644 --- a/.github/workflows/dockerhub-publish.yml +++ b/.github/workflows/dockerhub-publish.yml @@ -2,7 +2,8 @@ name: Publish Docker image on: push: - branches: ["release"] + tags: + - 'v*' jobs: push_to_registry: