소스 검색

fix

master
wat 4 년 전
부모
커밋
6edc9c22f4
1개의 변경된 파일9개의 추가작업 그리고 10개의 파일을 삭제
  1. 9
    10
      .drone.yml

+ 9
- 10
.drone.yml 파일 보기

13
   - echo "${DRONE_BUILD_CREATED}"
13
   - echo "${DRONE_BUILD_CREATED}"
14
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
14
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
15
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
15
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
16
-  - > 
17
-    if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
18
-    then;
19
-      git tag $PACKAGE_VERSION;
20
-      git status;
21
-      git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; 
22
-    else;
23
-      echo 'Version ';
24
-      echo $LATEST_VERSION;
25
-      echo 'did not change. Don`t push tag to master'; 
16
+  - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \
17
+    then \
18
+      git tag $PACKAGE_VERSION \
19
+      git status \
20
+      git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION \
21
+    else \
22
+      echo 'Version ' \
23
+      echo $LATEST_VERSION \
24
+      echo 'did not change. Don`t push tag to master' \
26
     fi
25
     fi
27
 
26
 
28
   environment:
27
   environment:

Loading…
취소
저장