Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
toolkit
Commits
ad69c936
Unverified
Commit
ad69c936
authored
Jul 06, 2021
by
Neil Hanlon
Browse files
maybe shellcheck will work
parent
e1ad10e1
Pipeline
#18
failed with stage
in 30 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
ad69c936
# you can delete this line if you're not using Docker
#image: busybox:latest
shellcheck
:
stage
:
test
image
:
registry.gitlab.com/pipeline-components/shellcheck:latest
variables
:
CUSTOM_ENV_CI_REGISTRY
:
git.rockylinux.org
CUSTOM_ENV_CI_REGISTRY_USER
:
neil
tags
:
-
container
script
:
# anything ending on .sh, should be shell script
-
|
find . -name .git -type d -prune -o -type f -name \*.sh -print0 |
xargs -0 -P $(nproc) -r -n1 shellcheck
# magic, any file with a valid shebang should be scanned aswell
-
|
find . -name .git -type d -prune -o -type f -regex '.*/[^.]*$' -print0 |
xargs -0 -P $(nproc) -r -n1 sh -c 'FILE="$0"; if head -n1 "$FILE" |grep -q "^#\\! \?/.\+\(ba|d|k\)\?sh" ; then shellcheck "$FILE" ; else /bin/true ; fi '
mangle/common
→
mangle/common
.sh
View file @
ad69c936
File moved
mangle/validate_repos
View file @
ad69c936
#!/usr/bin/env bash
# Source mangle vars
# shellcheck source=./common
source
"
$(
dirname
"
$0
"
)
/common"
# shellcheck source=./common
.sh
source
"
$(
dirname
"
$0
"
)
/common
.sh
"
# Source sync / migrate vars for repository information
# shellcheck source=../sync/common
source
"
$(
dirname
"
$0
"
)
/../sync/common"
# shellcheck source=../sync/common
.sh
source
"
$(
dirname
"
$0
"
)
/../sync/common
.sh
"
# How many
ARG1
=
${
1
}
...
...
sync/common
→
sync/common
.sh
View file @
ad69c936
File moved
sync/minor-release-sync-to-staging.sh
View file @
ad69c936
...
...
@@ -3,7 +3,7 @@
# other scripts in this directory to assist.
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
$(
dirname
"
$0
"
)
/common
source
$(
dirname
"
$0
"
)
/common
.sh
# sync all pieces of a release, including extras, nfv, etc
...
...
sync/prep-staging-8.sh
View file @
ad69c936
...
...
@@ -13,7 +13,7 @@
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
"
$(
dirname
"
$0
"
)
/common"
source
"
$(
dirname
"
$0
"
)
/common
.sh
"
echo
"** Updating source repos"
for
y
in
"
${
ALL_REPOS
[@]
}
"
;
do
...
...
sync/sync-to-prod.sh
View file @
ad69c936
...
...
@@ -3,7 +3,7 @@
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
"
$(
dirname
"
$0
"
)
/common"
source
"
$(
dirname
"
$0
"
)
/common
.sh
"
REV
=
${
1
}
...
...
sync/sync-to-staging-sig.sh
View file @
ad69c936
...
...
@@ -2,7 +2,7 @@
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
"
$(
dirname
"
$0
"
)
/common"
source
"
$(
dirname
"
$0
"
)
/common
.sh
"
# Major Version (eg, 8)
MAJ
=
${
1
}
...
...
sync/sync-to-staging.sh
View file @
ad69c936
...
...
@@ -2,7 +2,7 @@
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
"
$(
dirname
"
$0
"
)
/common"
source
"
$(
dirname
"
$0
"
)
/common
.sh
"
# Major Version (eg, 8)
MAJ
=
${
1
}
...
...
Neil Hanlon
@neil
mentioned in commit
a0848baa
·
Jul 06, 2021
mentioned in commit
a0848baa
mentioned in commit a0848baae4d87f3be79a2bdda1ec2da9af76c6ea
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment