aboutsummaryrefslogtreecommitdiff
path: root/home/bin/drone-encsecrets
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-10-20 17:30:09 -0700
committerJakob Odersky <jakob@odersky.com>2018-10-20 17:30:09 -0700
commit30e7c35db5936c59078cbfd1d83632454add572f (patch)
treef290cdfca1234b777d262c7c9fc63115905f78c5 /home/bin/drone-encsecrets
parent1fc0a9ceccea65ab5ce568d646952951b3023305 (diff)
downloaddotfiles-30e7c35db5936c59078cbfd1d83632454add572f.tar.gz
dotfiles-30e7c35db5936c59078cbfd1d83632454add572f.tar.bz2
dotfiles-30e7c35db5936c59078cbfd1d83632454add572f.zip
Remove some unused scripts
Diffstat (limited to 'home/bin/drone-encsecrets')
-rwxr-xr-xhome/bin/drone-encsecrets27
1 files changed, 0 insertions, 27 deletions
diff --git a/home/bin/drone-encsecrets b/home/bin/drone-encsecrets
deleted file mode 100755
index b341094..0000000
--- a/home/bin/drone-encsecrets
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-# Update drone-ci secrets
-
-# Get the repository of the current git project.
-# The repository name is the username/project tuple of the origin remote.
-REPO=${REPO:-$(git remote show origin -n | grep "Fetch URL:" | sed -e 's,.*:\(.*\),\1,' -e 's/\.git$//')}
-
-SECRETS_FILE="$HOME/.drone/secrets/$REPO/secrets.yml"
-
-echo "Generating secret for repository: $REPO"
-echo "Using secrets from: $SECRETS_FILE"
-
-if [ ! -f "$SECRETS_FILE" ]; then
- echo "Secrets file $SECRETS_FILE does not exist. Aborting.">&2
- exit 1
-fi
-
-drone \
- --server https://drone.jodersky.ch \
- --token $(pass infra/drone-token) \
- secure \
- --repo "$REPO" \
- -in "$SECRETS_FILE" \
- -out .drone.sec \
- --yaml .drone.yml \
- --checksum