From 40b05ffe7e4fddfbba050714da74fd8595032536 Mon Sep 17 00:00:00 2001 From: RainSun Date: Mon, 4 Jan 2021 00:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 19 +++++++++---------- lib/utils.py | 1 + 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 722ac89..9e1f19a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,16 @@ stages: - - clear - build + - clear - deploy +build: + stage: build + tags: + - dockerbase + script: + - ls -a + - docker build -t lacus/qrcode . + clear: stage: clear tags: @@ -12,15 +20,6 @@ clear: - docker rm qrcode allow_failure: true - -build: - stage: build - tags: - - dockerbase - script: - - ls -a - - docker build -t lacus/qrcode . - deploy: stage: deploy tags: diff --git a/lib/utils.py b/lib/utils.py index 24c9e9b..b4872ae 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1,6 +1,7 @@ import random import datetime import time +import re # 生成唯一不重名字符串 def randomId():