From 06a99cb3726045e4aee529e68ae564bc561410ab Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Sat, 1 Jul 2023 23:27:32 +1000 Subject: [PATCH] docker --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.drone.yml b/.drone.yml index e69de29..4520520 100644 --- a/.drone.yml +++ b/.drone.yml @@ -0,0 +1,24 @@ +--- +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 + - 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 \ No newline at end of file