Skip to content

Commit

Permalink
RP pipelines
Browse files Browse the repository at this point in the history
pipeline definition for infra + RP

https://issues.redhat.com/browse/ARO-12212
  • Loading branch information
geoberle committed Nov 18, 2024
1 parent 88b8d04 commit 7ffca9d
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 6 deletions.
3 changes: 0 additions & 3 deletions backend/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
SHELL = /bin/bash
DEPLOY_ENV ?= personal-dev
$(shell ../templatize.sh $(DEPLOY_ENV) config.tmpl.mk config.mk)
include config.mk

COMMIT = $(shell git rev-parse --short=7 HEAD)
ARO_HCP_BASE_IMAGE ?= ${ARO_HCP_IMAGE_ACR}.azurecr.io
Expand Down
21 changes: 21 additions & 0 deletions backend/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
serviceGroup: Microsoft.Azure.ARO.Test
rolloutName: RP - Backend
resourceGroups:
- name: {{ .serviceClusterRG }}
subscription: {{ .serviceClusterSubscription }}
aksCluster: {{ .aksName }}
steps:
- name: deploy
action: Shell
command: ["/bin/bash", "-c", "make deploy"]
env:
- name: ARO_HCP_IMAGE_ACR
configRef: svcAcrName
- name: LOCATION
configRef: region
- name: RESOURCEGROUP
configRef: serviceClusterRG
- name: AKS_NAME
configRef: aksName
- name: DB_NAME
configRef: frontendCosmosDBName
10 changes: 10 additions & 0 deletions dev-infrastructure/region-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
serviceGroup: Microsoft.Azure.ARO.Test
rolloutName: Region Rollout
resourceGroups:
- name: {{ .regionRG }}
subscription: {{ .serviceClusterSubscription }}
steps:
- name: region
action: ARM
template: templates/region.bicep
parameters: configurations/region.tmpl.bicepparam
10 changes: 10 additions & 0 deletions dev-infrastructure/svc-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
serviceGroup: Microsoft.Azure.ARO.Test
rolloutName: Service Cluster Rollout
resourceGroups:
- name: {{ .serviceClusterRG }}
subscription: {{ .serviceClusterSubscription }}
steps:
- name: svc
action: ARM
template: templates/svc-cluster.bicep
parameters: configurations/svc-cluster.tmpl.bicepparam
3 changes: 0 additions & 3 deletions frontend/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
SHELL = /bin/bash
DEPLOY_ENV ?= personal-dev
$(shell ../templatize.sh $(DEPLOY_ENV) config.tmpl.mk config.mk)
include config.mk

COMMIT = $(shell git rev-parse --short=7 HEAD)
ARO_HCP_BASE_IMAGE ?= ${ARO_HCP_IMAGE_ACR}.azurecr.io
Expand Down
21 changes: 21 additions & 0 deletions frontend/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
serviceGroup: Microsoft.Azure.ARO.Test
rolloutName: RP - Frontend
resourceGroups:
- name: {{ .serviceClusterRG }}
subscription: {{ .serviceClusterSubscription }}
aksCluster: {{ .aksName }}
steps:
- name: deploy
action: Shell
command: ["/bin/bash", "-c", "make deploy"]
env:
- name: ARO_HCP_IMAGE_ACR
configRef: svcAcrName
- name: LOCATION
configRef: region
- name: RESOURCEGROUP
configRef: serviceClusterRG
- name: AKS_NAME
configRef: aksName
- name: DB_NAME
configRef: frontendCosmosDBName

0 comments on commit 7ffca9d

Please sign in to comment.