Skip to content

Commit

Permalink
ci: add privileged permission to build
Browse files Browse the repository at this point in the history
  • Loading branch information
guangbochen committed Jul 7, 2023
1 parent d317ad1 commit ab29651
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ trigger:
steps:
- name: build
image: rancher/dapper:v0.5.8
privileged: true
commands:
- dapper ci
volumes:
Expand Down Expand Up @@ -43,4 +44,3 @@ volumes:
- name: docker
host:
path: /var/run/docker.sock

7 changes: 7 additions & 0 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@ source ${SCRIPTS_DIR}/version-monitoring
source ${SCRIPTS_DIR}/version-rancher
source ${SCRIPTS_DIR}/version-logging

if [ "$DRONE_BUILD_EVENT" == "cron" ]; then
echo "build install qcow image on cronjob"
BUILD_QCOW="true"
fi


echo "Installer version: ${VERSION}"
echo "Harvester version: ${HARVESTER_VERSION}"
echo "Harvester chart version: ${HARVESTER_CHART_VERSION}"
echo "Rancher version: ${RANCHER_VERSION}"
echo "Rancher monitoring version: ${MONITORING_VERSION}"
echo "Rancher logging version: ${LOGGING_VERSION}"
echo "Build qcow image: ${BUILD_QCOW}"

mkdir -p bin

Expand Down
7 changes: 0 additions & 7 deletions scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ REPO=${REPO:-rancher}
if echo $TAG | grep -q dirty; then
TAG=dev
fi

echo "DRONE_BUILD_EVENT:" $DRONE_BUILD_EVENT
if [ "$DRONE_BUILD_EVENT" == "cron" ]; then
echo "build install qcow image on cronjob"
BUILD_QCOW="true"
fi

0 comments on commit ab29651

Please sign in to comment.