diff --git a/.drone.yml b/.drone.yml index 7e69784..760cbcc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,23 +3,26 @@ type: docker name: nodejs-22-docker-ci steps: - - name: clone + - name: git-clone image: alpine/git commands: - git clone http://120.48.5.80:3000/lixin/automated_api.git - cd automated_api + - name: build-docker-image image: docker:latest volumes: - name: docker-socket path: /var/run/docker.sock - working-directory: automated_api + working_directory: automated_api commands: - docker build -t rz/automated_api:latest -f Dockerfile. + - name: run-container image: docker:latest commands: - docker run -d -p 8001:8001 rz/automated_api:latest + volumes: - name: docker-socket host: