You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
983 B

1 month ago
kind: pipeline
1 month ago
type: docker
1 month ago
name: default
1 month ago
1 month ago
volumes:
4 weeks ago
- name: docker-sock
host:
4 weeks ago
path: /var/run/docker.sock
1 month ago
- name: shared-folder
1 month ago
host:
1 month ago
path: /root/app/drone/workspace
1 month ago
- name: go-cache
host:
path: /root/app/drone/go-cache
1 month ago
1 month ago
clone:
disable: true
1 month ago
steps:
- name: clone
1 month ago
image: alpine/git:latest
1 month ago
pull: never
1 month ago
volumes:
1 month ago
- name: shared-folder
path: /workspace
1 month ago
commands:
1 month ago
- cd /workspace
1 month ago
- pwd
4 weeks ago
- git clone http://47.112.165.44:3000/seekm/prdUploader.git
1 month ago
1 month ago
- name: deploy
4 weeks ago
image: docker:24.0-cli
1 month ago
pull: never
volumes:
- name: shared-folder
path: /workspace
4 weeks ago
- name: docker-sock
4 weeks ago
path: /var/run/docker.sock
1 month ago
commands:
- echo "Building Docker image..."
4 weeks ago
- cd /workspace/prdUploader
1 month ago
- docker build -t prduploader:latest .
- echo "Running Docker container..."
- docker run -d -p 11000:11000 prduploader:latest
- echo "Deployment finished"