Fix: add when block + volumes
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: build-and-deploy
|
||||
image: docker:27
|
||||
@@ -5,6 +9,9 @@ steps:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /opt/build/test-app:/workspace
|
||||
- /opt/deploy-scripts:/deploy-scripts
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
commands:
|
||||
- cp -r . /workspace/
|
||||
- /deploy-scripts/deploy-test-app.sh
|
||||
- sh /deploy-scripts/deploy-test-app.sh
|
||||
|
||||
Reference in New Issue
Block a user