flask-htmx-board1/.drone.yml
Simple_Not 9222d1e71f
Some checks failed
continuous-integration/drone/push Build is failing
kube
2023-07-02 00:52:17 +10:00

30 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
clone:
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
disable: true
steps:
- name: pull into the folduh
commands:
- cd /usr/share/repos/$DRONE_REPO_NAME
- git pull origin $DRONE_COMMIT_BRANCH
- name: build
commands:
- cd /usr/share/repos/$DRONE_REPO_NAME
- git checkout $DRONE_COMMIT_BRANCH
- su - hogweed1 -c "eval $(minikube docker-env); docker build . -t ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-\"$(git rev-parse --short HEAD)\" "
- su - hogweed1 -c "eval $(minikube docker-env); docker tag ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-\"$(git rev-parse --short HEAD)\" ${DRONE_REPO_NAME}:latest "
- su - hogweed1 -c "eval $(minikube docker-env); docker tag ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-\"$(git rev-parse --short HEAD)\" ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH} "
# - docker build . -t ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-"$(git rev-parse --short HEAD)"
# - docker tag ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-"$(git rev-parse --short HEAD)" ${DRONE_REPO_NAME}:latest
# - docker tag ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-"$(git rev-parse --short HEAD)" ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}
#- su - hogweed1 -c "minikube image load ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}"