aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-04-10 20:43:03 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-04-28 04:45:57 -0300
commitdb1c3e49cb22368f3a6523e7ca732f3ff005794a (patch)
treea620476fa41970ea3bda4f43327e0fb2ff094a84 /.gitlab-ci.yml
parentci: use one command per line instead of chaining them (diff)
downloadfirejail-db1c3e49cb22368f3a6523e7ca732f3ff005794a.tar.gz
firejail-db1c3e49cb22368f3a6523e7ca732f3ff005794a.tar.zst
firejail-db1c3e49cb22368f3a6523e7ca732f3ff005794a.zip
ci: improve quotes in gitlab ci
Changes: * Add quotes around variables * Use single quotes where applicable
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 448cfc8cd..edbed5c0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -84,7 +84,7 @@ debian_ci:
84 DEBFULLNAME: "$GITLAB_USER_NAME" 84 DEBFULLNAME: "$GITLAB_USER_NAME"
85 DEBEMAIL: "$GITLAB_USER_EMAIL" 85 DEBEMAIL: "$GITLAB_USER_EMAIL"
86 before_script: 86 before_script:
87 - git checkout -B ci_build $CI_COMMIT_SHA 87 - git checkout -B ci_build "$CI_COMMIT_SHA"
88 - gitlab-ci-enable-sid 88 - gitlab-ci-enable-sid
89 - gitlab-ci-enable-experimental 89 - gitlab-ci-enable-experimental
90 - | 90 - |
@@ -96,22 +96,22 @@ debian_ci:
96 - git config user.name "$DEBFULLNAME" 96 - git config user.name "$DEBFULLNAME"
97 - git config user.email "$DEBEMAIL" 97 - git config user.email "$DEBEMAIL"
98 - | 98 - |
99 cd $CI_PROJECT_DIR/.. 99 cd "$CI_PROJECT_DIR/.."
100 apt-get source --download-only -t experimental firejail || 100 apt-get source --download-only -t experimental firejail ||
101 apt-get source --download-only firejail 101 apt-get source --download-only firejail
102 - | 102 - |
103 cd $CI_PROJECT_DIR 103 cd "$CI_PROJECT_DIR"
104 tar xf ../firejail_*.debian.tar.* 104 tar xf ../firejail_*.debian.tar.*
105 - rm -rf debian/patches/ 105 - rm -rf debian/patches/
106 - | 106 - |
107 VERSION=$(grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2) 107 VERSION="$(grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2)"
108 dch -v ${VERSION}-0.1~ci "Non-maintainer upload." 108 dch -v "${VERSION}-0.1~ci" 'Non-maintainer upload.'
109 git archive -o ../firejail_${VERSION}.orig.tar.gz HEAD 109 git archive -o "../firejail_${VERSION}.orig.tar.gz" HEAD
110 pristine-tar commit ../firejail_${VERSION}.orig.tar.gz ci_build 110 pristine-tar commit "../firejail_${VERSION}.orig.tar.gz" ci_build
111 git branch -m pristine-tar origin/pristine-tar 111 git branch -m pristine-tar origin/pristine-tar
112 - git add debian 112 - git add debian
113 - git commit -m "add debian/" 113 - git commit -m 'add debian/'
114 - export CI_COMMIT_SHA=$(git rev-parse HEAD) 114 - export CI_COMMIT_SHA="$(git rev-parse HEAD)"
115 script: 115 script:
116 - apt-get --no-install-recommends install -y -qq gawk 116 - apt-get --no-install-recommends install -y -qq gawk
117 - gitlab-ci-git-buildpackage 117 - gitlab-ci-git-buildpackage