CI: Don’t rely on /tmp

/tmp is mounted noexec, so can’t be used to run scripts.
This commit is contained in:
David Prevot 2022-06-29 13:41:31 +02:00
parent 3150d48ba5
commit bdb84e809f
2 changed files with 4 additions and 15 deletions

View File

@ -5,7 +5,7 @@ pipeline {
agent { agent {
docker { docker {
image 'evolix/gbp:bullseye' image 'evolix/gbp:bullseye'
args '-u root --privileged -v /tmp:/tmp' args '-u root --privileged'
} }
} }
when { when {
@ -29,8 +29,8 @@ pipeline {
steps { steps {
script { script {
sh 'echo Dummy line to remove once something actually happens.' sh 'echo Dummy line to remove once something actually happens.'
/* No crendentials yet /* No crendentials yet.
sh 'rsync -avP /tmp/bkctld/ droneci@pub.evolix.net:/home/droneci/bkctld/' sh 'rsync -avP bkctld* droneci@pub.evolix.net:/home/droneci/bkctld/'
*/ */
} }
} }

View File

@ -15,9 +15,6 @@ steps:
- mk-build-deps --install --remove debian/control - mk-build-deps --install --remove debian/control
- git clean --force - git clean --force
- gbp buildpackage -us -uc - gbp buildpackage -us -uc
volumes:
- name: tmp
path: /tmp
when: when:
branch: branch:
- debian - debian
@ -31,16 +28,8 @@ steps:
key: key:
from_secret: drone_private_key from_secret: drone_private_key
target: /home/droneci/bkctld/ target: /home/droneci/bkctld/
source: /tmp/bkctld/ source: ../bkctld*
delete: true delete: true
volumes:
- name: tmp
path: /tmp
when: when:
branch: branch:
- debian - debian
volumes:
- name: tmp
host:
path: /tmp