Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
09a972fd
authored
Jul 06, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can pass env variables in GitLab settings to an env file
parent
a704ab3e
Pipeline
#1196
failed with stage
in 3 minutes 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
.gitlab-ci.yml
+3
-2
setup_ci_env.sh
+30
-0
No files found.
.gitlab-ci.yml
View file @
09a972fd
image
:
python:3.6
image
:
python:3.6
before_script
:
before_script
:
-
mv .env.example .env
-
chmod +x ./setup_ci_env.sh
-
./setup_ci_env.sh
-
git submodule sync --recursive
-
git submodule sync --recursive
-
git submodule update --init --recursive
-
git submodule update --init --recursive
flake8
:
flake8
:
script
:
script
:
-
pip install flake8
-
pip
3
install flake8
-
flake8
-
flake8
build-local
:
build-local
:
...
...
setup_ci_env.sh
0 → 100644
View file @
09a972fd
#!/bin/bash
# This variables are interpreted automatically by the Docker Engine
# And by the Django runtime
# Django configuration
echo
DJANGO_SECRET
=
${
DJANGO_SECRET
}
>>
.env
echo
DJANGO_SETTINGS_MODULE
=
${
DJANGO_SETTINGS_MODULE
}
>>
.env
# If using other database than sqlite3 (only use sqlite for development!)
# Provide the db credentials here
echo
DATABASE_PASSWORD
=
${
DATABASE_PASSWORD
}
>>
.env
echo
DATABASE_USER
=
${
DATABASE_USER
}
>>
.env
echo
DATABASE_NAME
=
${
DATABASE_NAME
}
>>
.env
echo
DATABASE_HOST
=
${
DATABASE_HOST
}
>>
.env
# For channels communication and periodic tasks we need a redis server
echo
REDIS_HOST
=
${
REDIS_HOST
}
>>
.env
# OpenStack credentials
# In development we recommend using a DevStack installation
# These settings displayed in an admin dashboard or
# Can be downloaded from Horizon, as an admin user
echo
OS_AUTH_URL
=
${
OS_AUTH_URL
}
>>
.env
echo
OS_PROJECT_ID
=
${
OS_PROJECT_ID
}
>>
.env
echo
OS_PROJECT_NAME
=
${
OS_PROJECT_NAME
}
>>
.env
echo
OS_USER_DOMAIN_NAME
=
${
OS_USER_DOMAIN_NAME
}
>>
.env
echo
OS_USER_DOMAIN_ID
=
${
OS_USER_DOMAIN_ID
}
>>
.env
echo
OS_PROJECT_DOMAIN_ID
=
${
OS_PROJECT_DOMAIN_ID
}
>>
.env
echo
OS_USERNAME
=
${
OS_USERNAME
}
>>
.env
echo
OS_PASSWORD
=
${
OS_PASSWORD
}
>>
.env
echo
OS_REGION_NAME
=
${
OS_REGION_NAME
}
>>
.env
echo
OS_INTERFACE
=
${
OS_INTERFACE
}
>>
.env
echo
OS_IDENTITY_API_VERSION
=
${
OS_IDENTITY_API_VERSION
}
>>
.env
\ No newline at end of file
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