Some checks failed
continuous-integration/drone/push Build is failing
- add README - update build steps to use docker.sock
48 lines
934 B
YAML
48 lines
934 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build-docker-image
|
|
|
|
steps:
|
|
- name: build
|
|
image: docker:20.10.24-cli
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- apk add --no-cache make bash git
|
|
- make build
|
|
|
|
- name: push
|
|
image: docker:20.10.24-cli
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- apk add --no-cache make bash git
|
|
- mkdir -p /root/.docker
|
|
- echo "${DOCKER_CONFIG_JSON}" > /root/.docker/config.json
|
|
- make push
|
|
|
|
- name: clean
|
|
image: docker:20.10.24-cli
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- apk add --no-cache make bash git
|
|
- make clean
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
secrets:
|
|
- source: docker_config_json
|
|
target: DOCKER_CONFIG_JSON
|