diff --git a/.github/workflows/local-release-demo.yml b/.github/workflows/local-release-demo.yml new file mode 100644 index 00000000..3d373a80 --- /dev/null +++ b/.github/workflows/local-release-demo.yml @@ -0,0 +1,22 @@ +name: local-release-demo + +# Intended for local network use. +# Remote access is possible if the host has a public IP address. + +on: + workflow_dispatch: + +jobs: + local-release-demo: + runs-on: ubuntu-latest + steps: + - name: Remote deploy internal chamomind server + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: | + cd ~/repositories/jws-frontend + git pull + docker compose up -d --build diff --git a/.github/workflows/local-release-dev.yml b/.github/workflows/local-release-dev.yml new file mode 100644 index 00000000..5bc0101e --- /dev/null +++ b/.github/workflows/local-release-dev.yml @@ -0,0 +1,22 @@ +name: local-release-dev + +# Intended for local network use. +# Remote access is possible if the host has a public IP address. + +on: + workflow_dispatch: + +jobs: + local-release-dev: + runs-on: ubuntu-latest + steps: + - name: Remote deploy internal chamomind server + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: | + cd ~/repositories/jws-frontend + git pull + docker compose up -d --build