Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oncampus
Patterns and Frameworks
Commits
83a5d047
Commit
83a5d047
authored
Jun 07, 2019
by
David Engelhardt
Browse files
adjusted ci-pipeline to build nginx-image
parent
a360fd7c
Pipeline
#6259
passed with stage
in 1 minute and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
83a5d047
pages
:
services
:
stage
:
deploy
-
docker:dind
variables
:
DOCKER_HOST
:
tcp://docker:2375
DOCKER_DRIVER
:
overlay2
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build
:
stage
:
build
script
:
script
:
-
mv docs public
-
docker build -t $IMAGE_TAG .
artifacts
:
-
docker push $IMAGE_TAG
paths
:
-
public
only
:
-
master
\ No newline at end of file
Dockerfile
0 → 100644
View file @
83a5d047
FROM
nginx
EXPOSE
80
RUN
sed
-i
-e
's, location / {, location /patterns-and-frameworks {,g'
/etc/nginx/conf.d/default.conf
;
\
sed
-i
-e
's, root /usr/share/nginx/html;, alias /usr/share/nginx/html;,g'
/etc/nginx/conf.d/default.conf
COPY
docs/ /usr/share/nginx/html
Write
Preview
Supports
Markdown
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