Fix: add when block + volumes

This commit is contained in:
2026-02-20 12:24:48 +00:00
parent ad72e84140
commit 6ee3018e81

View File

@@ -1,3 +1,7 @@
when:
- event: push
branch: main
steps: steps:
- name: build-and-deploy - name: build-and-deploy
image: docker:27 image: docker:27
@@ -5,6 +9,9 @@ steps:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /opt/build/test-app:/workspace - /opt/build/test-app:/workspace
- /opt/deploy-scripts:/deploy-scripts - /opt/deploy-scripts:/deploy-scripts
when:
- event: push
branch: main
commands: commands:
- cp -r . /workspace/ - cp -r . /workspace/
- /deploy-scripts/deploy-test-app.sh - sh /deploy-scripts/deploy-test-app.sh