initial commit
This commit is contained in:
46
.drone.yml
Normal file
46
.drone.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
workspace:
|
||||
path: /drone/src
|
||||
|
||||
environment:
|
||||
REPO_NAME: galaxis-internal-proxy
|
||||
IMAGE_NAME: galaxis-internal-proxy
|
||||
REGISTRY_URL: registry.galaxis.xyz
|
||||
|
||||
steps:
|
||||
- name: build image from master branch
|
||||
image: plugins/docker
|
||||
commands:
|
||||
- cd /drone/src
|
||||
- docker build -t $${REGISTRY_URL}/$${IMAGE_NAME} -f Dockerfile .
|
||||
- docker tag $${REGISTRY_URL}/$${IMAGE_NAME} localhost:5000/$${IMAGE_NAME}
|
||||
#- docker push $${REGISTRY_URL}/$${IMAGE_NAME}
|
||||
- docker push localhost:5000/$${IMAGE_NAME}
|
||||
- docker rmi $${REGISTRY_URL}/$${IMAGE_NAME}
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
||||
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
- name: docker_bin
|
||||
host:
|
||||
path: /usr/bin/docker
|
||||
|
Reference in New Issue
Block a user