This commit is contained in:
@@ -6,9 +6,20 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
commands:
|
commands:
|
||||||
|
- echo "$ENV_FILE" > .env
|
||||||
- docker build -t aboba .
|
- 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:
|
||||||
- echo "$ENV_FILE" > .env
|
- echo "$ENV_FILE" > .env
|
||||||
- sh run.sh
|
- 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