cd: after building deploy to server pink
Some checks failed
build and publish docker image / deploy / build (push) Failing after 18s
Some checks failed
build and publish docker image / deploy / build (push) Failing after 18s
This commit is contained in:
parent
ac4171f888
commit
4e2284f149
12
.github/workflows/build_deploy_dev.yml
vendored
12
.github/workflows/build_deploy_dev.yml
vendored
|
@ -50,3 +50,15 @@ jobs:
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven
|
${{ runner.os }}-maven
|
||||||
|
|
||||||
|
- name: Setup SSH
|
||||||
|
uses: https://github.comLuisEnMarroquin/setup-ssh-action@v2.0.0
|
||||||
|
with:
|
||||||
|
ORIGIN: ${{ secrets.HOST }} # example.com || 8.8.8.8
|
||||||
|
SSHKEY: ${{ secrets.SSH }} # ----- BEGIN RSA PRIVATE KEY----- ...
|
||||||
|
NAME: dev
|
||||||
|
PORT: ${{ secrets.PORT }} # 3000
|
||||||
|
USER: ${{ secrets.USER }} # admin
|
||||||
|
# pull and deploy latest images
|
||||||
|
- run: ssh dev "cd services/server && docker compose pull && docker compose up -d";
|
||||||
|
|
||||||
|
|
Reference in a new issue