Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
janboll committed Dec 20, 2024
1 parent d44a6e0 commit 3f93246
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/services-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
with:
kubelogin-version: 'v0.1.3'

- name: 'Install helm diff'
run: |
helm plugin install https://github.com/databus23/helm-diff
- name: 'Deploy Frontend'
env:
PRINCIPAL_ID: ${{ secrets.GHA_PRINCIPAL_ID }}
Expand Down
3 changes: 2 additions & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-include ../setup-env.mk
-include ../helm-cmd.mk

ifndef COMMIT
COMMIT := $(shell git rev-parse --short=7 HEAD)
Expand Down Expand Up @@ -52,7 +53,7 @@ deploy:
TENANT_ID=$(shell az account show --query tenantId --output tsv) && \
kubectl create namespace aro-hcp --dry-run=client -o json | kubectl apply -f - && \
kubectl label namespace aro-hcp "istio.io/rev=$${ISTO_VERSION}" --overwrite=true && \
helm diff --install ${HELM_DRY_RUN} aro-hcp-frontend-dev \
${HELM_CMD} aro-hcp-frontend-dev \
deploy/helm/frontend/ \
--set azure.clientId=$${SECRET_STORE_MI_CLIENT_ID} \
--set azure.tenantId=$${TENANT_ID} \
Expand Down
4 changes: 2 additions & 2 deletions frontend/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ resourceGroups:
command: make deploy
dryRun:
variables:
- name: HELM_DRY_RUN
value: "--suppress-secrets"
- name: DRY_RUN
value: "true"
variables:
- name: ARO_HCP_IMAGE_ACR
configRef: svcAcrName
Expand Down
5 changes: 5 additions & 0 deletions helm-cmd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ifdef DRY_RUN
HELM_CMD ?= helm diff --install --suppress-secrets
else
HELM_CMD ?= helm upgrade --install
endif
1 change: 0 additions & 1 deletion run_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ fi

make -s -C ${PROJECT_ROOT_DIR}/tooling/templatize templatize
TEMPLATIZE="${PROJECT_ROOT_DIR}/tooling/templatize/templatize"
helm plugin install https://github.com/databus23/helm-diff

CONFIG_FILE=${CONFIG_FILE:-${PROJECT_ROOT_DIR}/config/config.yaml}
$TEMPLATIZE pipeline run \
Expand Down

0 comments on commit 3f93246

Please sign in to comment.