forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
okteto-pipeline.yml
22 lines (22 loc) · 931 Bytes
/
okteto-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
icon: https://raw.githubusercontent.com/Drakkar-Software/OctoBot/assets/octopus.png
deploy:
- echo "" >> .env
- |
if [[ "$OKTETO_GIT_BRANCH" == "master" ]] ; then
echo "DOCKER_IMAGE=drakkarsoftware/octobot:stable" >> .env
echo "TENTACLES_REPOSITORY=tentacles" >> .env
echo "TENTACLES_URL_TAG=" >> .env
okteto stack deploy --wait
elif [[ "$OKTETO_GIT_BRANCH" == "dev" ]] ; then
echo "TENTACLES_REPOSITORY=tentacles" >> .env
echo "TENTACLES_URL_TAG=latest" >> .env
echo "DOCKER_IMAGE=okteto.dev/octobot:latest" >> .env
okteto build -t okteto.dev/octobot:latest
okteto stack deploy --wait
else
echo "TENTACLES_REPOSITORY=dev-tentacles" >> .env
echo "TENTACLES_URL_TAG=${OKTETO_GIT_BRANCH##*/}" >> .env
echo "DOCKER_IMAGE=okteto.dev/octobot:latest" >> .env
okteto build -t okteto.dev/octobot:latest
okteto stack deploy --wait
fi