Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
gwcelery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
52
Issues
52
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
12
Merge Requests
12
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emfollow
gwcelery
Commits
d07e6c0f
Commit
d07e6c0f
authored
Aug 17, 2020
by
Leo Pound Singer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docker image tags for branches with slashes in their name [ci skip]
parent
efde0e23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
.gitlab-ci.yml
.gitlab-ci.yml
+6
-6
No files found.
.gitlab-ci.yml
View file @
d07e6c0f
...
@@ -63,7 +63,7 @@ bdist:
...
@@ -63,7 +63,7 @@ bdist:
stage
:
dist
stage
:
dist
variables
:
variables
:
GIT_STRATEGY
:
fetch
GIT_STRATEGY
:
fetch
IMAGE_TAG
:
$CI_REGISTRY_IMAGE/$CI_JOB_NAME:$CI_COMMIT_REF_
NAME
IMAGE_TAG
:
$CI_REGISTRY_IMAGE/$CI_JOB_NAME:$CI_COMMIT_REF_
SLUG
script
:
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
|
-
|
...
@@ -102,14 +102,14 @@ dependencies/python3.8:
...
@@ -102,14 +102,14 @@ dependencies/python3.8:
reports
:
reports
:
junit
:
junit.xml
junit
:
junit.xml
test/python3.7
:
test/python3.7
:
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.7:$CI_COMMIT_REF_
NAME
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.7:$CI_COMMIT_REF_
SLUG
<<
:
*test
<<
:
*test
test/python3.8
:
test/python3.8
:
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.8:$CI_COMMIT_REF_
NAME
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.8:$CI_COMMIT_REF_
SLUG
<<
:
*test
<<
:
*test
lint
:
lint
:
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.8:$CI_COMMIT_REF_
NAME
image
:
$CI_REGISTRY_IMAGE/dependencies/python3.8:$CI_COMMIT_REF_
SLUG
stage
:
test
stage
:
test
variables
:
variables
:
GIT_STRATEGY
:
fetch
GIT_STRATEGY
:
fetch
...
@@ -137,11 +137,11 @@ associate commits in Sentry:
...
@@ -137,11 +137,11 @@ associate commits in Sentry:
.docker
:
&docker
.docker
:
&docker
stage
:
deploy
stage
:
deploy
script
:
script
:
-
IMAGE_TAG=$CI_REGISTRY_IMAGE/${CI_JOB_NAME#*/}:$CI_COMMIT_REF_
NAME
-
IMAGE_TAG=$CI_REGISTRY_IMAGE/${CI_JOB_NAME#*/}:$CI_COMMIT_REF_
SLUG
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
|
-
|
cat <<EOF > Dockerfile
cat <<EOF > Dockerfile
FROM $CI_REGISTRY_IMAGE/dependencies/${CI_JOB_NAME#*/}:$CI_COMMIT_REF_
NAME
FROM $CI_REGISTRY_IMAGE/dependencies/${CI_JOB_NAME#*/}:$CI_COMMIT_REF_
SLUG
COPY *.whl .
COPY *.whl .
RUN pip install *.whl
RUN pip install *.whl
RUN rm -f *.whl
RUN rm -f *.whl
...
...
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