2025-01-10 12:22:50 +08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2025-01-10 13:56:34 +08:00
|
|
|
name: default
|
2025-01-10 13:29:14 +08:00
|
|
|
|
2025-01-10 12:22:50 +08:00
|
|
|
steps:
|
2025-01-10 13:56:34 +08:00
|
|
|
- name: git-clone
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git clone http://120.48.5.80:3000/lixin/automated_api.git
|
|
|
|
- cd automated_api
|
2025-01-10 12:28:17 +08:00
|
|
|
|
2025-01-10 14:02:17 +08:00
|
|
|
|
2025-01-10 13:56:34 +08:00
|
|
|
- name: docker-build
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
- name: docker-run
|
|
|
|
image: docker:20.10
|
|
|
|
commands:
|
|
|
|
- docker run -d -p 8001:8001 automated_api:latest
|
2025-01-10 12:22:50 +08:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
2025-01-10 12:25:38 +08:00
|
|
|
- main
|
2025-01-10 12:22:50 +08:00
|
|
|
event:
|
2025-01-10 13:56:34 +08:00
|
|
|
- push
|