Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rybička
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Rybička
Commits
647f0bc1
Commit
647f0bc1
authored
2 years ago
by
Tomáš
Browse files
Options
Downloads
Patches
Plain Diff
add docker nginx image
parent
7a8ddc2d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10937
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
nginx.conf
+23
-0
23 additions, 0 deletions
nginx.conf
with
31 additions
and
0 deletions
.gitlab-ci.yml
+
8
−
0
View file @
647f0bc1
...
@@ -20,3 +20,11 @@ build_app:
...
@@ -20,3 +20,11 @@ build_app:
-
docker pull $CI_REGISTRY_IMAGE:test ||
true
-
docker pull $CI_REGISTRY_IMAGE:test ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:test -t $IMAGE_TAG_APP .
-
docker build --cache-from $CI_REGISTRY_IMAGE:test -t $IMAGE_TAG_APP .
-
docker push $IMAGE_TAG_APP
-
docker push $IMAGE_TAG_APP
build_nginx
:
stage
:
build
when
:
manual
script
:
-
docker pull $CI_REGISTRY_IMAGE:test-nginx ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:test-nginx -t $IMAGE_TAG_NGINX . -f Dockerfile.nginx
-
docker push $IMAGE_TAG_NGINX
This diff is collapsed.
Click to expand it.
nginx.conf
0 → 100644
+
23
−
0
View file @
647f0bc1
upstream
rybicka
{
ip_hash
;
server
app
:
8000
;
}
server
{
server_name
rybicka
;
listen
8080
;
client_max_body_size
10M
;
proxy_connect_timeout
60
;
proxy_send_timeout
60
;
proxy_read_timeout
60
;
send_timeout
60
;
location
/
{
proxy_pass
http://rybicka/
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-Proto
https
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
}
}
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