This commit is contained in:
ls
2024-10-11 23:50:14 +08:00
parent df1d38e90a
commit 91daf9a981

View File

@@ -17,7 +17,7 @@
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution
- build
# - build
- deploy
build-job: # This job runs in the build stage, which runs first.
@@ -35,6 +35,6 @@ deploy-job: # This job runs in the deploy stage.
environment: production
script:
- echo "Deploying application..."
- docker login --username=lslvxy@163.com -password-stdin < /root/docker_password registry.cn-shanghai.aliyuncs.com
- docker login --username=lslvxy@163.com --password-stdin < /root/docker_password registry.cn-shanghai.aliyuncs.com
- docker build --platform linux/amd64 -t registry.cn-shanghai.aliyuncs.com/physical/physical-boot --push .
- echo "Application successfully deployed."