Commit c4fda8d9 authored by Josh Ji's avatar Josh Ji

build image drone.yml

parent 15ba5718
Pipeline #3278 failed with stage
...@@ -3,8 +3,17 @@ type: docker ...@@ -3,8 +3,17 @@ type: docker
name: default name: default
steps: steps:
- name: greeting - name: Build image
image: alpine image: docker:20.10.0-dind
environment:
REGISTRY_USERNAME:
from_secret: harbor_account_in_twisc_ntust
REGISTRY_PASSWORD:
from_secret: harbor_secret_in_twisc_ntust
volumes:
- name: docker_socket
path: /var/run/docker.sock
commands: commands:
- echo hello - docker build --no-cache -t 192.168.0.100:30004/dev/rpserver:${DRONE_COMMIT_SHA:0:8} -f ./Dockerfile .
- echo world - docker login 192.168.0.100:30004 --username $${REGISTRY_USERNAME} --password $${REGISTRY_PASSWORD}
\ No newline at end of file - docker push 192.168.0.100:30004/dev/rpserver:${DRONE_COMMIT_SHA:0:8}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment