From 0eeeac62345667c690b723e62fb39caa14b0ebff Mon Sep 17 00:00:00 2001 From: Anduin Xue Date: Thu, 11 Jan 2024 07:01:16 +0000 Subject: [PATCH] New ci pipeline compliant. --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b945bc2..d120504 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -118,3 +118,18 @@ upload_to_local_nuget: done only: - master + +deploy_docker: + stage: deploy + environment: production + needs: + - publish + dependencies: + - publish + script: + - docker build . -t hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest + - docker push hub.aiursoft.cn/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:latest + rules: + - if: '$CI_COMMIT_BRANCH == "master"' + exists: + - Dockerfile \ No newline at end of file