Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cern-sso-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CERN Digital Memory
cern-sso-python
Commits
d609bdce
Commit
d609bdce
authored
8 years ago
by
Albin Stjerna
Browse files
Options
Downloads
Patches
Plain Diff
Switch to alpine-based Python images (they are smaller)
parent
aa4098db
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-5
6 additions, 5 deletions
.gitlab-ci.yml
with
6 additions
and
5 deletions
.gitlab-ci.yml
+
6
−
5
View file @
d609bdce
...
...
@@ -4,19 +4,20 @@ stages:
-
deploy
lint
:
image
:
python
:
2
image
:
frovlad/alpine-
python2
stage
:
pre_test
before_script
:
-
apk update && apk add make
-
pip install flake8
script
:
-
make lint
test_2
:
image
:
python
:
2
image
:
frovlad/alpine-
python2
stage
:
test
before_script
:
# Authenticate using the keytab:
-
sudo apt-get update && sudo apt-get install -y krb5-user
-
apk update && apk add make krb5
-
base64 --decode <(echo "$KRB_KEYTAB_CONTENTS") > $KRB_USERNAME.keytab
-
kinit $KRB_USERNAME@CERN.CH -k -t $KRB_USERNAME.keytab
script
:
...
...
@@ -28,9 +29,9 @@ test_2:
test_3
:
stage
:
test
image
:
python
:
3
image
:
frovlad/alpine-
python3
before_script
:
-
sudo apt-get update && sudo apt-get install -y krb5-user
-
apk update && apk add make krb5
# Authenticate using the keytab
:
-
base64 --decode <(echo "$KRB_KEYTAB_CONTENTS") > $KRB_USERNAME.keytab
-
kinit $KRB_USERNAME@CERN.CH -k -t $KRB_USERNAME.keytab
...
...
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