Compare commits
3 Commits
d0bc379518
...
71613988a1
| Author | SHA1 | Date | |
|---|---|---|---|
| 71613988a1 | |||
| d61740d4d4 | |||
| e04481d552 |
@@ -1,13 +1,25 @@
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: test
|
branch: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
commands:
|
commands:
|
||||||
- docker build -t test .
|
- echo "$ENV_FILE" > .env
|
||||||
|
- docker build -t aboba .
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
ENV_FILE:
|
||||||
|
from_secret: ENV_FILE
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
commands:
|
commands:
|
||||||
- sh run.sh
|
- echo "$ENV_FILE" > .env
|
||||||
|
- sh run.sh
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
ENV_FILE:
|
||||||
|
from_secret: ENV_FILE
|
||||||
Reference in New Issue
Block a user