Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ultrasoccer-nationsleague
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ultrasoccer
ultrasoccer-nationsleague
Commits
cc4d1e19
Commit
cc4d1e19
authored
3 years ago
by
TonyFord
Browse files
Options
Downloads
Patches
Plain Diff
add env
parent
c2ad7df7
No related branches found
No related tags found
No related merge requests found
Pipeline
#50577
failed
3 years ago
Stage: update
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
env/LH_PORT
+1
-0
1 addition, 0 deletions
env/LH_PORT
setenv
+50
-0
50 additions, 0 deletions
setenv
with
52 additions
and
1 deletion
docker-compose.yml
+
1
−
1
View file @
cc4d1e19
...
...
@@ -8,7 +8,7 @@ services:
command
:
jekyll serve
restart
:
always
ports
:
-
4990:4000
-
${LH_PORT:-
4990
}
:4000
environment
:
JEKYLL_UID
:
${RUNNER_UID:-1000}
JEKYLL_GID
:
${RUNNER_GID:-1000}
...
...
This diff is collapsed.
Click to expand it.
env/LH_PORT
0 → 100644
+
1
−
0
View file @
cc4d1e19
LH_PORT=4990
This diff is collapsed.
Click to expand it.
setenv
0 → 100644
+
50
−
0
View file @
cc4d1e19
#!/bin/bash
export
RUNNER_UID
=
`
id
-u
`
export
RUNNER_GID
=
`
id
-g
`
CI_PROJECT_NAME
=
${
PWD
##*/
}
F
=
`
ls
-p
./env |
grep
-v
/
`
for
f
in
$F
do
v
=
`
echo
-n
${
!f
}
`
if
[
"
${
!f
}
"
!=
""
]
then
echo
"
${
f
}
=
${
!f
}
"
>
./env/
${
f
}
fi
done
if
[[
-d
"./env_file"
]]
then
F
=
`
ls
-p
./env_file |
grep
-v
/
`
for
f
in
$F
do
echo
${
f
}
=
./env_file/
${
f
}
>
./env/
${
f
}
done
fi
# link to gitlab-runner env files if exists ####
if
[[
-d
"../
${
CI_PROJECT_NAME
}
.tmp"
]]
then
F
=
`
ls
-p
../
${
CI_PROJECT_NAME
}
.tmp |
grep
-v
/
`
for
f
in
$F
do
echo
${
f
}
=
${
PWD
}
/../
${
CI_PROJECT_NAME
}
.tmp/
${
f
}
>
./env/
${
f
}
done
fi
# export env vars
export
`
cat
./env/
*
`
# set executable to console and deployment commands
chmod
+x console/jekyll
chmod
+x console/help
chmod
+x console/ps
chmod
+x deploy/help
chmod
+x deploy/start
chmod
+x deploy/jekyll_debug
chmod
+x deploy/update
chmod
+x deploy/stop
chmod
+x deploy/uninstall
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment