Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
93edfb88
Commit
93edfb88
authored
Apr 27, 2020
by
Tim Leers
Committed by
Geoff Simmons
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments for gitlabci file
parent
8d5cf3b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
.gitlab-ci.yml
.gitlab-ci.yml
+22
-20
No files found.
.gitlab-ci.yml
View file @
93edfb88
...
...
@@ -27,36 +27,18 @@ test:
script
:
-
make check
# build new varnish image if dockerfile changes
build:varnish
:
extends
:
.build-varnish
rules
:
-
changes
:
-
container/Dockerfile.varnish
# varnish image can be build when user triggers it
build:varnish:manual
:
extends
:
.build-varnish
when
:
manual
.build-varnish
:
stage
:
build
image
:
docker:19.03.8
- when
:
manual
services
:
-
docker:19.03.8-dind
variables
:
IMAGE
:
varnish
before_script
:
-
apk add -U make
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker pull $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/varnish-ingress/$IMAGE:latest ||
true
-
cd container
-
make varnish
-
docker tag varnish-ingress/$IMAGE $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:$CI_COMMIT_SHA
-
docker tag varnish-ingress/$IMAGE $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
-
docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:$CI_COMMIT_SHA
-
docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
build:controller
:
stage
:
build
image
:
docker:19.03.8
...
...
@@ -109,3 +91,23 @@ integration:
-
kind load docker-image varnish-ingress/varnish
-
kind load docker-image varnish-ingress/controller
-
test/e2e.sh
# basic step for a pipeline to build the varnish image
.build-varnish
:
stage
:
build
image
:
docker:19.03.8
services
:
-
docker:19.03.8-dind
variables
:
IMAGE
:
varnish
before_script
:
-
apk add -U make
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script
:
-
docker pull $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/varnish-ingress/$IMAGE:latest ||
true
-
cd container
-
make varnish
-
docker tag varnish-ingress/$IMAGE $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:$CI_COMMIT_SHA
-
docker tag varnish-ingress/$IMAGE $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
-
docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:$CI_COMMIT_SHA
-
docker push $CI_REGISTRY/timleers/k8s-ingress/varnish-ingress/$IMAGE:latest
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