Skip to content
Permalink
feature-drone
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
kind: pipeline
name: default
# TODO, move most of this to a drone plugin
# Env vars:
# - DRONE_YOE_DOCKER_IMAGE
# - DRONE_YOE_CACHE_DIR
# - DRONE_YOE_IMAGE
# - DRONE_YOE_ENVSETUP
clone:
disable: true
steps:
- name: build
image: yoedistro/yoe-build:stretch
volumes:
- name: drone-cache
path: /scratch/drone-cache
environment:
YOE_SKIP_SHELL_TEST: true
DOCKER_REPO: none
commands:
- cd /scratch/drone-cache
- pwd
- echo "building $${DRONE_GIT_HTTP_URL}, branch $${DRONE_REPO_BRANCH}"
- export CACHE_DIR="$${DRONE_REPO_NAMESPACE}-$${DRONE_REPO_NAME}-$${DRONE_REPO_BRANCH}"
- echo "CACHE_DIR $${CACHE_DIR}"
- "[ -e $${CACHE_DIR} ] || git clone $${DRONE_GIT_HTTP_URL} $${CACHE_DIR}"
- cd $${CACHE_DIR}
- git checkout $${DRONE_REPO_BRANCH}
- git pull
- git submodule update --recursive --init
- . ./raspberrypi3-64-envsetup.sh
- bitbake yoe-simple-image
when:
branch:
- master
- feature-drone
volumes:
- name: drone-cache
host:
path: /scratch/drone-cache
node:
oe: true