2023-07-01 23:27:32 +10:00
|
|
|
|
---
|
|
|
|
|
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
|
2023-07-01 23:28:26 +10:00
|
|
|
|
- docker build . -t ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-"$(git rev-parse --short HEAD)"
|
2023-07-01 23:31:37 +10:00
|
|
|
|
- docker tag ${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-"$(git rev-parse --short HEAD)" ${DRONE_REPO_NAME}:latest
|
2023-07-02 00:05:03 +10:00
|
|
|
|
- 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}"
|
|
|
|
|
|