workflow: added .git to mirror and removed deploy on image building
Some checks failed
Build docker images, publish them, deploy to test server / build (push) Failing after 29s
Mirror dev branch to remote / build (push) Successful in 14s

This commit is contained in:
2005 2024-09-05 18:06:10 +02:00
parent a15ab6b9f0
commit ee62e8ed54
2 changed files with 3 additions and 13 deletions

View file

@ -50,13 +50,3 @@ jobs:
key: linux-maven
restore-keys: |
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

View file

@ -12,10 +12,10 @@ jobs:
steps:
- name: Clone bare dev branch
run: git clone --bare https://git.4o1x5.dev/${{ github.repository }} -b master
- name: Cd into directory
run: cd learningpulse.git
- 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