workflow: added .git to mirror and removed deploy on image building
This commit is contained in:
parent
a15ab6b9f0
commit
ee62e8ed54
|
@ -50,13 +50,3 @@ jobs:
|
||||||
key: linux-maven
|
key: linux-maven
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
linux-maven
|
linux-maven
|
||||||
|
|
||||||
# TODO trigger pull with docker
|
|
||||||
- name: executing remote ssh commands using ssh key
|
|
||||||
uses: https://github.com/appleboy/ssh-action@v1.0.3
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.HOST }}
|
|
||||||
username: ${{ secrets.USERNAME }}
|
|
||||||
key: ${{ secrets.KEY }}
|
|
||||||
port: ${{ secrets.PORT }}
|
|
||||||
script: cd services/server && git fetch --all && git reset --hard origin/dev && docker compose pull && docker compose up -d
|
|
|
@ -12,10 +12,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Clone bare dev branch
|
- name: Clone bare dev branch
|
||||||
run: git clone --bare https://git.4o1x5.dev/${{ github.repository }} -b master
|
run: git clone --bare https://git.4o1x5.dev/${{ github.repository }} -b master
|
||||||
- name: Cd into directory
|
|
||||||
run: cd learningpulse.git
|
|
||||||
- name: Mirror to github
|
- name: Mirror to github
|
||||||
run: git push --mirror https://nezsha:${{ secrets.MIRROR_USER_PASSWORD }}@github.com/nezsha/lp
|
run: |
|
||||||
|
cd learningpulse.git && \
|
||||||
|
git push --mirror https://nezsha:${{ secrets.MIRROR_USER_PASSWORD }}@github.com/nezsha/lp.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue