Skip to content

Commit

Permalink
Merge pull request #11 from intershop/main
Browse files Browse the repository at this point in the history
release: 1.5.1
  • Loading branch information
MoritzKarsch authored Sep 26, 2024
2 parents e1e131a + 7d0a76b commit 0918d23
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The respective CI pipelines of the different products of the Intershop Commerce
registry: <NAME>.azurecr.io
buildWith:
- type: buildWith
tag: 11.X.X
tag: 12.X.X
name: <IMAGE_NAME>
registry: intershop
```
Expand Down
10 changes: 4 additions & 6 deletions azure-pipelines.yml.icm.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ resources:
# Trigger by branch pipeline
- master
- develop
# Trigger by tag pipeline
tags:
include:
- version/*
# Trigger by tag pipeline
- refs/tags/version/*

repositories:
- repository: environments
Expand All @@ -36,15 +34,15 @@ resources:
ref: refs/heads/stable/v1

variables:
# Library icm11-build-configuration is provided by Intershops DevOps Environment. It provides
# Library icm-build-configuration is provided by Intershops DevOps Environment. It provides
# the following variables:
# - BUILD_AGENT_POOL: name of the build agent pool
# - REPO_SERVICE_CONNECTION: service connection to the customer ACR
# - REPO_PATH: host name and path of the customer ACR
# - INTERSHOP_REPO_SERVICE_CONNECTION: service connection to the Intershop container registry
# - INTERSHOP_REPO_PATH: host name and path of the Intershop container registry
# - ARTIFACT_FEED name of the icm artifacts feed
- group: icm11-build-configuration
- group: icm-build-configuration

#
# The CD process can be very individual.
Expand Down
5 changes: 2 additions & 3 deletions azure-pipelines.yml.iom.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ resources:
- master
- develop
# Trigger by tag pipeline
tags:
include:
- *
# Trigger by tag pipeline
- refs/tags/*

repositories:
- repository: <environments-repository>
Expand Down
18 changes: 8 additions & 10 deletions azure-pipelines.yml.pwa.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ appendCommitMessageToRunName: false

resources:
pipelines:
- pipeline: <pwa-ci-pipeline>
source: <pwa-ci-pipeline>
- pipeline: <pwa-ci-pipeline-name>
source: <pwa-ci-pipeline-name>
trigger:
branches:
include:
# Trigger by branch pipeline
- master
- develop
- release/*
# Trigger by tag pipeline
tags:
include:
- version/*
# Trigger by branch pipeline
- master
- develop
- release/*
# Trigger by tag pipeline
- refs/tags/version/*

repositories:
- repository: environments
Expand Down
8 changes: 4 additions & 4 deletions tasks/process_pwa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ for image in "${IMAGES_MAPPING[@]}"; do
TAG="${IMAGE_TAG}" \
yq -i '.spec.values.image.tag = strenv(TAG)' "${PATCH_FILE_FULL_PATH}"

# If TEMP_USE_PREDEFINED_REGISTRY is true, than use PWAPREDEFINEDSSRREGISTRY as registry
# If TEMP_USE_PREDEFINED_REGISTRY is true, than use TEMP_PWA_PREDEFINED_SSR_REGISTRY as registry
if [[ "${TEMP_USE_PREDEFINED_REGISTRY}" == "True" ]]; then
FINAL_REPOSITORY="${PWAPREDEFINEDSSRREGISTRY}/${IMAGE_NAME}"
FINAL_REPOSITORY="${TEMP_PWA_PREDEFINED_SSR_REGISTRY}/${IMAGE_NAME}"
else
FINAL_REPOSITORY="${IMAGE_REGISTRY}/${IMAGE_NAME}"
fi
Expand All @@ -51,9 +51,9 @@ for image in "${IMAGES_MAPPING[@]}"; do
TAG="${IMAGE_TAG}" \
yq -i '.spec.values.cache.image.tag = strenv(TAG)' "${PATCH_FILE_FULL_PATH}"

# If ${TEMP_USE_PREDEFINED_REGISTRY} is true, than use PWAPREDEFINEDNGINXREGISTRY as registry
# If ${TEMP_USE_PREDEFINED_REGISTRY} is true, than use TEMP_PWA_PREDEFINED_NGINX_REGISTRY as registry
if [[ "${TEMP_USE_PREDEFINED_REGISTRY}" == "True" ]]; then
FINAL_REPOSITORY="${PWAPREDEFINEDNGINXREGISTRY}/${IMAGE_NAME}"
FINAL_REPOSITORY="${TEMP_PWA_PREDEFINED_NGINX_REGISTRY}/${IMAGE_NAME}"
else
FINAL_REPOSITORY="${IMAGE_REGISTRY}/${IMAGE_NAME}"
fi
Expand Down

0 comments on commit 0918d23

Please sign in to comment.