Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
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
Container registry
Model registry
Operate
Environments
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
AURA
dashboard
Commits
9f4a3ee8
Commit
9f4a3ee8
authored
1 year ago
by
Kay Effenberger
Browse files
Options
Downloads
Patches
Plain Diff
Add nginx to release stage
parent
45227518
No related branches found
No related tags found
1 merge request
!14
ADD: nginx Dockerfile
Pipeline
#5293
failed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-18
16 additions, 18 deletions
.gitlab-ci.yml
with
16 additions
and
18 deletions
.gitlab-ci.yml
+
16
−
18
View file @
9f4a3ee8
...
...
@@ -161,26 +161,10 @@ variables:
/usr/local/bin/tank --config /tmp/tank.yaml run --listen ":$TANK_PORT"
stages
:
-
build-nginx
-
test
-
release
build-nginx
:
image
:
docker:latest
stage
:
build-nginx
variables
:
NGINX_IMAGE_NAME
:
'
autoradio/nginx-unprivileged-certbot'
services
:
-
docker:dind
before_script
:
-
docker pull nginxinc/nginx-unprivileged:1.25
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script
:
-
docker build -t $NGINX_IMAGE_NAME -t $CI_REGISTRY_IMAGE:main ./nginx/
-
docker push $CI_REGISTRY_IMAGE:main
when
:
manual
lint
:
image
:
node:lts-alpine
stage
:
test
...
...
@@ -205,9 +189,23 @@ test:
expire_in
:
30 days
paths
:
-
playwright-report/
-
test-results/
-
test-results/i
nginx-docker-push
:
image
:
docker:latest
stage
:
release
variables
:
NGINX_IMAGE_NAME
:
'
autoradio/nginx-unprivileged-certbot'
services
:
-
docker:dind
before_script
:
-
docker pull nginxinc/nginx-unprivileged:1.25
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script
:
-
docker build -t $NGINX_IMAGE_NAME -t $CI_REGISTRY_IMAGE:nginx-unprivileged-certbot ./nginx/
-
docker push $CI_REGISTRY_IMAGE:nginx-unprivileged-certbot
docker-push
:
dashboard-
docker-push
:
# Use the official docker image.
image
:
docker:latest
stage
:
release
...
...
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