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
14
.github/workflows/build_deploy_dev.yml
vendored
14
.github/workflows/build_deploy_dev.yml
vendored
|
@ -49,4 +49,16 @@ jobs:
|
|||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
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