fix: now prs don't deploy to the dev server

This commit is contained in:
2005 2024-06-06 06:30:13 +02:00
parent 193e5c0332
commit ab1f32f32e

View file

@ -1,10 +1,8 @@
name: build and publish docker image / deploy name: Build docker images, publish them, deploy to test server
on: on:
push: push:
branches: ["dev"] branches: ["dev"]
pull_request:
branches: ["dev"]
jobs: jobs:
@ -16,9 +14,6 @@ jobs:
id: maven-cache-restore id: maven-cache-restore
uses: https://github.com/actions/cache/restore@v4 uses: https://github.com/actions/cache/restore@v4
with: with:
path: |
path/to/dependencies
some/other/dependencies
key: linux-maven key: linux-maven
- uses: https://github.com/actions/checkout@v4 - uses: https://github.com/actions/checkout@v4
@ -51,6 +46,7 @@ jobs:
restore-keys: | restore-keys: |
linux-maven linux-maven
# TODO trigger pull with docker
- name: executing remote ssh commands using ssh key - name: executing remote ssh commands using ssh key
uses: https://github.com/appleboy/ssh-action@v1.0.3 uses: https://github.com/appleboy/ssh-action@v1.0.3
with: with: