small change6
All checks were successful
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Successful in 12s
All checks were successful
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Successful in 12s
This commit is contained in:
parent
5e2437c10d
commit
77f291bb15
@ -2,24 +2,8 @@ name: Gitea Docker Redeploy
|
|||||||
run-name: ${{ gitea.actor }} is deploying new version
|
run-name: ${{ gitea.actor }} is deploying new version
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
Redeploy-App:
|
ssh_to_self_and_redeploy:
|
||||||
runs-on: ubuntu-latest #self-hosted
|
name: Redploy-App-on-self-via-SSH
|
||||||
steps:
|
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
#- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
#- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
||||||
|
|
||||||
#- run: ls /home/tobias
|
|
||||||
|
|
||||||
|
|
||||||
ssh_to_self:
|
|
||||||
name: ssh_to_self
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: executing remote ssh commands using password
|
- name: executing remote ssh commands using password
|
||||||
@ -31,7 +15,12 @@ jobs:
|
|||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
script: |
|
script: |
|
||||||
ls
|
ls
|
||||||
whoami
|
cd Ollama-Bot
|
||||||
|
cd deployment
|
||||||
|
docker-compose down
|
||||||
|
git pull
|
||||||
|
docker-compose build
|
||||||
|
docker-compose push
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user