Fix: add when block + volumes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user