Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible Inventories
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
Service Desk
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
GitLab CI/CD
Ansible Inventories
Commits
a5c3805f
Commit
a5c3805f
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Include all CI jobs into the main template
parent
2963a019
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci-template.yml
+32
-11
32 additions, 11 deletions
.gitlab-ci-template.yml
with
32 additions
and
11 deletions
.gitlab-ci-template.yml
+
32
−
11
View file @
a5c3805f
...
...
@@ -2,29 +2,50 @@ stages:
-
build
-
deploy
build-docker-image
:
stage
:
build
script
:
.default_settings_docker
:
&default_settings_docker
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
only
:
-
master
-
chat
except
:
-
schedules
.default_settings_cron
:
&default_settings_cron
stage
:
deploy
tags
:
-
ansible
variables
:
GIT_STRATEGY
:
none
only
:
refs
:
-
chat
-
schedules
variables
:
-
$ANSIBLE_JOB_NAME
-
$ANSIBLE_EXTRA_ARGS
update-docker-image
:
BuildDockerImage
:
<<
:
*default_settings_docker
stage
:
build
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
UpdateDockerImage
:
<<
:
*default_settings_docker
stage
:
deploy
tags
:
-
ansible-update
variables
:
GIT_STRATEGY
:
none
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker pull "$CI_REGISTRY_IMAGE"
only
:
-
master
-
chat
RenewLetsEncrypt
:
<<
:
*default_settings_cron
script
:
-
ascr role letsencrypt --tags=renew ${CHAT_INPUT} ${ANSIBLE_EXTRA_ARGS}
except
:
-
schedules
variables
:
-
$ANSIBLE_JOB_NAME != "RenewLetsEncrypt"
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