aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJulien Dessaux2022-09-14 00:04:30 +0200
committerJulien Dessaux2022-09-14 00:04:30 +0200
commit4bf865ba1b7cbfb32340d0f956ac0bcb29e60d40 (patch)
tree63b396347c10e805b7e6adfb3cae8c3e3c1c0509 /www
parentAdded a buildah login step to the www-build job (diff)
downloadev-scripts-4bf865ba1b7cbfb32340d0f956ac0bcb29e60d40.tar.gz
ev-scripts-4bf865ba1b7cbfb32340d0f956ac0bcb29e60d40.tar.bz2
ev-scripts-4bf865ba1b7cbfb32340d0f956ac0bcb29e60d40.zip
Use the EVENTLINE_JOB_NAME environment variable instead of reinventing the wheel
Diffstat (limited to '')
-rwxr-xr-xwww/build-images.sh4
-rw-r--r--www/www-build.yaml6
2 files changed, 1 insertions, 9 deletions
diff --git a/www/build-images.sh b/www/build-images.sh
index 632cd3e..d306572 100755
--- a/www/build-images.sh
+++ b/www/build-images.sh
@@ -1,9 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
-NAME=$1
-
-WORKDIR="/tmp/${NAME}"
+WORKDIR="/tmp/${EVENTLINE_JOB_NAME}"
cleanup() {
rm -rf "${WORKDIR}"
diff --git a/www/www-build.yaml b/www/www-build.yaml
index f2a4dcb..b763e54 100644
--- a/www/www-build.yaml
+++ b/www/www-build.yaml
@@ -7,24 +7,18 @@ steps:
script:
path: "../common/git-clone.sh"
arguments:
- - "www-build"
- "https://git.adyxax.org/adyxax/www"
- label: build images
script:
path: "build-images.sh"
- arguments:
- - "www-build"
- label: make push
script:
path: "../common/make.sh"
arguments:
- - "www-build"
- "push"
- label: clean
script:
path: "../common/clean.sh"
- arguments:
- - "www-build"
identities:
- quay-io
runner: