From 22008293c56a65694626541109bf4ac3bef70273 Mon Sep 17 00:00:00 2001 From: toby Date: Fri, 29 Mar 2019 18:07:01 +0000 Subject: [PATCH] updating .drone file for mirrors --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index c911f3c..50c80d0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,19 +3,19 @@ pipeline: image: registry.i.wit.com/toby/packager:1.3 environment: - SHELL=/bin/bash + - DEBNAME=wit-network-config commands: - echo Building ${DRONE_BRANCH/master/experimental} - apt-get --allow-releaseinfo-change update - apt-get install -y sed strongswan frr isc-dhcp-client systemd - - apt-get clean - - echo "wit-network-config (2.0.$(TZ=UTC date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit $(TZ=UTC date -R)" >debian/changelog + - echo "$DEBNAME (1.0.$(date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit $(date -R)" >debian/changelog - dpkg-buildpackage --no-sign - - ls -lha ../wit-network-config_*_all.deb + - ls -lha ../$DEBNAME_*_all.deb - echo "$SSH_KEY" >/tmp/id_rsa - chmod 600 /tmp/id_rsa - - scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental} + - scp -i /tmp/id_rsa -o StrictHostKeyChecking=no ../$DEBNAME_*_all.deb debcore@mirrors.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental} secrets: [ ssh_key ] -branches: +branches: - master - staging - main