-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the Makefile to build and push in GH actions (#313)
Signed-off-by: Roy Golan <[email protected]>
- Loading branch information
Showing
15 changed files
with
179 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ jobs: | |
with: | ||
workflow_id: escalation | ||
application_id: jira-listener | ||
secrets: inherit | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -68,12 +69,10 @@ jobs: | |
kubectl wait --for=condition=Ready=true pods -l "app.kubernetes.io/name=tackle-ui" -n my-konveyor-operator --timeout=120s | ||
# now MTA workflow can execute agains tackle-ui.my-konveyor-operator.svc:8080 | ||
- name: Deploy Janus-idp-workflow-helm (janus + sonataflow-opertor) | ||
- name: Deploy Orchestrator-k8s helm chart | ||
run: | | ||
helm repo add janus-idp-workflows https://rgolangh.github.io/janus-idp-workflows-helm/ | ||
helm install janus-idp-workflows janus-idp-workflows/janus-idp-workflows \ | ||
--set backstage.upstream.backstage.image.tag=1.1 \ | ||
-f https://raw.githubusercontent.com/rgolangh/janus-idp-workflows-helm/main/charts/kubernetes/orchestrator/values-k8s.yaml | ||
helm repo add orchestrator https://parodos-dev.github.io/orchestrator-helm-chart | ||
helm install orchestrator orchestrator/orchestrator-k8s | ||
echo "sleep bit long till the PV for data index and kaniko cache is ready. its a bit slow. TODO fixit" | ||
kubectl get pv | ||
|
@@ -82,6 +81,14 @@ jobs: | |
kubectl wait --for=condition=Ready=true pods -l "app.kubernetes.io/name=backstage" --timeout=120s | ||
kubectl get pods -o wide | ||
kubectl wait --for=condition=Ready=true pods -l "app=sonataflow-platform" --timeout=120s | ||
#give the data-index time to register and start. | ||
sleep 1m | ||
kubectl get pods | ||
kubecel get svc | ||
This comment has been minimized.
Sorry, something went wrong. |
||
- name: Deploy fake notifications service | ||
run: | | ||
source e2e/helper-functions.sh | ||
create-fake-notifications-service | ||
- name: Download sonataflow artifacts generated manifests | ||
uses: actions/download-artifact@v4 | ||
|
@@ -101,12 +108,8 @@ jobs: | |
- name: Deploy MTA serverless workflow | ||
run: | | ||
###### workaround till https://issues.redhat.com/browse/FLPATH-892 is solved | ||
# yq --inplace '.spec.podTemplate.container |= ( . + {"imagePullPolicy": "IfNotPresent"} )' manifests/01-sonataflow_mtaanalysis.yaml | ||
###### end workfaround | ||
# Set the endpoint to the tackle-ui service | ||
yq --inplace '.spec.podTemplate.container.env |= ( . + [{"name": "QUARKUS_REST_CLIENT_MTA_JSON_URL", "value": "http://tackle-ui.my-konveyor-operator.svc:8080/hub"}, {"name": "BACKSTAGE_NOTIFICATIONS_URL", "value": "http://janus-idp-workflows-backstage.default.svc.cluster.local:7007/api/notifications/"}] )' manifests/01-sonataflow_mtaanalysis.yaml | ||
yq --inplace '.spec.podTemplate.container.env |= ( . + [{"name": "QUARKUS_REST_CLIENT_MTA_JSON_URL", "value": "http://tackle-ui.my-konveyor-operator.svc:8080/hub"}, {"name": "BACKSTAGE_NOTIFICATIONS_URL", "value": "http://fake-notifications-service.default.svc.cluster.local:8080/api/notifications/"}] )' manifests/01-sonataflow_mtaanalysis.yaml | ||
# Disable persistence for e2e tests | ||
yq e '.spec.persistence = {}' -i manifests/01-sonataflow_mtaanalysis.yaml | ||
|
@@ -120,6 +123,11 @@ jobs: | |
cat manifests/01-sonataflow_mtaanalysis.yaml | ||
echo "---" | ||
# Set notification external access token | ||
echo " Set notification external access token" | ||
yq --inplace '.data."NOTIFICATIONS_BEARER_TOKEN" = "ZTJldG9rZW4="' manifests/01-secret_mtaanalysis.yaml # notsecret | ||
cat manifests/01-secret_mtaanalysis.yaml | ||
# deploy the manifests created by the ${{ steps.build-image.outputs.image }} image | ||
kubectl apply -f manifests/ | ||
sleep 5 | ||
|
@@ -129,7 +137,6 @@ jobs: | |
kubectl get pods -o wide | ||
kubectl wait --for=condition=Ready=true pods -l "app=mtaanalysis" --timeout=5m | ||
- uses: actions/checkout@v4 | ||
- name: Run e2e script | ||
run: | | ||
e2e/mta.sh | ||
|
@@ -144,4 +151,4 @@ jobs: | |
if: always() | ||
with: | ||
name: kind-logs | ||
path: ./kind_logs/ | ||
path: ./kind_logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -70,10 +71,8 @@ jobs: | |
- name: Deploy Janus-idp-workflow-helm (janus + sonataflow-opertor) | ||
run: | | ||
helm repo add janus-idp-workflows https://rgolangh.github.io/janus-idp-workflows-helm/ | ||
helm install janus-idp-workflows janus-idp-workflows/janus-idp-workflows \ | ||
--set backstage.upstream.backstage.image.tag=1.1 \ | ||
-f https://raw.githubusercontent.com/rgolangh/janus-idp-workflows-helm/main/charts/kubernetes/orchestrator/values-k8s.yaml | ||
helm repo add orchestrator https://parodos-dev.github.io/orchestrator-helm-chart | ||
helm install orchestrator orchestrator/orchestrator-k8s | ||
echo "sleep bit long till the PV for data index and kaniko cache is ready. its a bit slow. TODO fixit" | ||
kubectl get pv | ||
|
@@ -83,6 +82,11 @@ jobs: | |
kubectl get pods -o wide | ||
kubectl wait --for=condition=Ready=true pods -l "app=sonataflow-platform" --timeout=600s | ||
- name: Deploy fake notifications service | ||
run: | | ||
source e2e/helper-functions.sh | ||
create-fake-notifications-service | ||
- name: Download sonataflow artifacts generated manifests | ||
uses: actions/download-artifact@v4 | ||
with: | ||
|
@@ -101,12 +105,8 @@ jobs: | |
- name: Deploy MTA serverless workflow | ||
run: | | ||
###### workaround till https://issues.redhat.com/browse/FLPATH-892 is solved | ||
# yq --inplace '.spec.podTemplate.container |= ( . + {"imagePullPolicy": "IfNotPresent"} )' manifests/01-sonataflow_mta-analysis-v6.yaml | ||
###### end workfaround | ||
# Set the endpoint to the tackle-ui service | ||
yq --inplace '.spec.podTemplate.container.env |= ( . + [{"name": "QUARKUS_REST_CLIENT_MTA_JSON_URL", "value": "http://tackle-ui.my-konveyor-operator.svc:8080"}, {"name": "BACKSTAGE_NOTIFICATIONS_URL", "value": "http://janus-idp-workflows-backstage.default.svc.cluster.local:7007/api/notifications/"}] )' manifests/01-sonataflow_mta-analysis-v6.yaml | ||
yq --inplace '.spec.podTemplate.container.env |= ( . + [{"name": "QUARKUS_REST_CLIENT_MTA_JSON_URL", "value": "http://tackle-ui.my-konveyor-operator.svc:8080"}, {"name": "BACKSTAGE_NOTIFICATIONS_URL", "value": "http://fake-notifications-service.default.svc.cluster.local:8080/api/notifications/"}] )' manifests/01-sonataflow_mta-analysis-v6.yaml | ||
# Disable persistence for e2e tests | ||
yq e '.spec.persistence = {}' -i manifests/01-sonataflow_mta-analysis-v6.yaml | ||
|
@@ -120,6 +120,11 @@ jobs: | |
cat manifests/01-sonataflow_mta-analysis-v6.yaml | ||
echo "---" | ||
# Set notification external access token | ||
echo " Set notification external access token" | ||
yq --inplace '.data."NOTIFICATIONS_BEARER_TOKEN" = "ZTJldG9rZW4="' manifests/01-secret_mta-analysis-v6.yaml # notsecret | ||
cat manifests/01-secret_mta-analysis-v6.yaml | ||
# deploy the manifests created by the ${{ steps.build-image.outputs.image }} image | ||
kubectl apply -f manifests/ | ||
sleep 5 | ||
|
@@ -129,7 +134,6 @@ jobs: | |
kubectl get pods -o wide | ||
kubectl wait --for=condition=Ready=true pods -l "app=mta-analysis-v6" --timeout=10m | ||
- uses: actions/checkout@v4 | ||
- name: Run e2e script | ||
run: | | ||
e2e/mta-v6.x.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
...