Feat: env file
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2024-12-27 20:34:48 +03:00
parent e04481d552
commit d61740d4d4

View File

@@ -6,9 +6,20 @@ steps:
- name: build
image: docker:latest
commands:
- 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
image: docker:latest
commands:
- 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