Skip to content

Commit

Permalink
deploy frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Oct 28, 2024
1 parent 62a4060 commit 621921d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 52 deletions.
86 changes: 38 additions & 48 deletions .github/workflows/aro-hcp-dev-env-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,55 +315,46 @@
cd tooling/image-sync
make push
# deploy_to_service_cluster:
# #if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
# needs:
# - build_push_frontend
# - build_push_backend
# - build_push_imagesync
# - build_push_ocmirror
# - deploy_service_cluster_rg
# permissions:
# id-token: 'write'
# contents: 'read'
# runs-on: 'ubuntu-latest'
# outputs:
# service_cluster_name: ${{ steps.find_service_cluster.name }}
# env:
# RESOURCEGROUP: aro-hcp-dev-westus3-sc
# steps:
# - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
# with:
# fetch-depth: 1
deploy_to_service_cluster:
#if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
needs:
- build_push_frontend
- build_push_backend
- build_push_imagesync
- build_push_ocmirror
- deploy_service_cluster_rg
permissions:
id-token: 'write'
contents: 'read'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 1

# - name: 'Az CLI login'
# uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Az CLI login'
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# - name: 'Find service cluster'
# id: find_service_cluster
# uses: azure/cli@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # v2.1.0
# with:
# azcliversion: 2.63.0
# inlineScript: |
# echo "name=$(az aks list --resource-group "${SC_RESOURCEGROUP}" --output tsv --query "[?tags.clusterType == 'svc-cluster'].name | [0]")" >> $GITHUB_OUTPUT
- name: Install Azure CLI
uses: ./.github/actions/install-azure-cli

# - uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0
- uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0

# # Used to deploy Cluster Service
# - name: 'Install oc'
# run: |
# curl -sfLo - https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.15.9/openshift-client-linux.tar.gz | tar xzf -
# sudo mv oc /usr/local/bin/oc
# chmod +x /usr/local/bin/oc
# Used to deploy Cluster Service
- name: 'Install oc'
run: |
curl -sfLo - https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.15.9/openshift-client-linux.tar.gz | tar xzf -
sudo mv oc /usr/local/bin/oc
chmod +x /usr/local/bin/oc
# # Used to deploy Maestro Server, Frontend
# - uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
# with:
# version: 'v3.13.3'
# Used to deploy Maestro Server, Frontend
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
with:
version: 'v3.13.3'

# - uses: azure/use-kubelogin@76597ae0fcbaace21b05e13a2cbf8daee2c6e820 # v1.2
# with:
Expand All @@ -381,10 +372,9 @@
# cd istio
# make deploy-service

# - name: 'Deploy Frontend'
# run: |
# cd frontend/
# make deploy
- name: 'Deploy Frontend'
run: |
make rp.frontend.deploy
# - name: 'Deploy Backend'
# run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ maestro.agent.deploy:
./svc-deploy.sh $(DEPLOY_ENV) maestro/agent mgmt

maestro.registration.deploy:
./svc-deploy.sh $(DEPLOY_ENV) maestro/registration mgmt
./svc-deploy.sh $(DEPLOY_ENV) maestro/registration svc

maestro: maestro.server.deploy maestro.agent.deploy maestro.registration.deploy

Expand Down
4 changes: 2 additions & 2 deletions dev-infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ svc.what-if: svc.rg
.PHONY: svc.what-if

svc.dev-role-assignments:
@./ensure-no-running-deployment.sh $(SC_RESOURCEGROUP) svc-roleassigns
@./ensure-no-running-deployment.sh $(SVC_RESOURCEGROUP) svc-roleassigns
az deployment group create \
--name svc-roleassigns \
--resource-group "${SC_RESOURCEGROUP}" \
--resource-group "${SVC_RESOURCEGROUP}" \
--template-file templates/dev-roleassignments.bicep \
--parameters configurations/dev-role-assignments.bicepparam
--parameters principalID=${PRINCIPAL_ID}
Expand Down
2 changes: 1 addition & 1 deletion tooling/image-sync/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL = /bin/bash
DEPLOY_ENV ?= personal-dev
$(shell ../templatize.sh $(DEPLOY_ENV) config.tmpl.mk config.mk)
$(shell ../../templatize.sh $(DEPLOY_ENV) config.tmpl.mk config.mk)
include config.mk
COMMIT = $(shell git rev-parse --short=7 HEAD)$(shell [[ $$(git status --porcelain) = "" ]] || echo -dirty)

Expand Down

0 comments on commit 621921d

Please sign in to comment.