Skip to content

Commit

Permalink
ci: Fix action, added samples (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem authored Aug 24, 2023
2 parents 976d4a0 + 862e4d9 commit 1e6b8c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
34 changes: 17 additions & 17 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,63 +111,63 @@ runs:
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
echo "host-path=${ARMONIK_SHARED_HOST_PATH}" >> $GITHUB_OUTPUT
- name: Create shared host path directory
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
mkdir -p ${ARMONIK_SHARED_HOST_PATH}
- name: Create Kubernetes namespace
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
make create-namespace
- name: Deploy KEDA
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
make deploy-keda
- name: Deploy storage
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
make deploy-storage
- name: Deploy monitoring
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
python ${{ github.action_path }}/tools/modify_parameters.py \
-kv "monitoring.metrics_exporter.image=${{ inputs.metrics-exporter-image }}" \
-kv "monitoring.metrics_exporter.tag=${{ inputs.core-tag }}" \
-kv "monitoring.partition_metrics_exporter.image=${{ inputs.partition-metrics-exporter-image }}" \
-kv "monitoring.partition_metrics_exporter.tag=${{ inputs.core-tag }}" \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/monitoring/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/monitoring/parameters.tfvars.json
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
make deploy-monitoring PARAMETERS_FILE=${{ github.action_path }}/infrastructure/quick-deploy/localhost/monitoring/parameters.tfvars.json
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/monitoring/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/monitoring/parameters.tfvars.json
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
make deploy-monitoring PARAMETERS_FILE=${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/monitoring/parameters.tfvars.json
- name: Deploy ArmoniK
shell: bash
run: |
set -ex
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
source envvars.sh
if [ -z ${{ inputs.ingress }} ]; then
python ${{ github.action_path }}/tools/modify_parameters.py \
Expand All @@ -185,8 +185,8 @@ runs:
-kv ingress=null \
-kv authentication.require_authentication=false \
-kv authentication.require_authorization=false \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/armonik/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/armonik/parameters.tfvars.json
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/armonik/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/armonik/parameters.tfvars.json
else
python ${{ github.action_path }}/tools/modify_parameters.py \
-kv "compute_plane[default].worker[*].image=${{ inputs.worker-image }}" \
Expand All @@ -205,8 +205,8 @@ runs:
-kv ingress.generate_client_cert=false \
-kv authentication.require_authentication=false \
-kv authentication.require_authorization=false \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/armonik/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/armonik/parameters.tfvars.json
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/armonik/parameters.tfvars \
${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/armonik/parameters.tfvars.json
fi
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost
make deploy-armonik PARAMETERS_FILE=${{ github.action_path }}/infrastructure/quick-deploy/localhost/armonik/parameters.tfvars.json
cd ${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages
make deploy-armonik PARAMETERS_FILE=${{ github.action_path }}/infrastructure/quick-deploy/localhost/multi-stages/armonik/parameters.tfvars.json
2 changes: 2 additions & 0 deletions versions.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"dockerhubaneo/armonik_worker_dll"
],
"samples": [
"dockerhubaneo/armonik_demo_helloworld_worker",
"dockerhubaneo/armonik_demo_multipleresults_worker"
]
},
"image_tags": {
Expand Down

0 comments on commit 1e6b8c4

Please sign in to comment.