Skip to content

Commit

Permalink
#7 - Made version number a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsi committed Dec 19, 2023
1 parent d188653 commit f95a177
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/.variables.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:release: 7
:version: 7.14
23 changes: 12 additions & 11 deletions docs/index.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
= Setting up CI/CD pipelines
include::.variables.adoc[]

This guide describes how you create a CI/CD pipeline that builds, tests and deploys your XP apps with your favorite CI/CD service.

Expand Down Expand Up @@ -50,13 +51,13 @@ name: default
steps:
- name: build & test app
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
commands:
- /setup_sandbox.sh
- enonic project build
- name: deploy App
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
environment:
ENONIC_CLI_REMOTE_URL:
from_secret: ENONIC_CLI_REMOTE_URL
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
build:
working_directory: ~/app
docker:
- image: enonic/enonic-ci:7.13
- image: enonic/enonic-ci:{version}
steps:
- checkout
- run:
Expand Down Expand Up @@ -205,7 +206,7 @@ git push
pipeline {
agent {
docker {
image 'enonic/enonic-ci:7.13'
image 'enonic/enonic-ci:{version}'
}
}
environment {
Expand Down Expand Up @@ -313,13 +314,13 @@ trigger:
steps:
- name: build & test app
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
commands:
- /setup_sandbox.sh
- enonic project build
- name: deploy
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
environment:
ENONIC_CLI_REMOTE_URL:
from_secret: testing-url
Expand All @@ -345,13 +346,13 @@ trigger:
steps:
- name: build & test app
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
commands:
- /setup_sandbox.sh
- enonic project build
- name: deploy
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
environment:
ENONIC_CLI_REMOTE_URL:
from_secret: staging-url
Expand All @@ -374,13 +375,13 @@ trigger:
steps:
- name: build & test app
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
commands:
- /setup_sandbox.sh
- enonic project build
- name: deploy
image: enonic/enonic-ci:7.13
image: enonic/enonic-ci:{version}
environment:
ENONIC_CLI_REMOTE_URL:
from_secret: production-url
Expand Down Expand Up @@ -439,7 +440,7 @@ version: 2.1
executors:
xp-executor:
docker:
- image: enonic/enonic-ci:7.13
- image: enonic/enonic-ci:{version}
working_directory: ~/app
jobs:
Expand Down

0 comments on commit f95a177

Please sign in to comment.