From b6b37eabe8b0e7b3ddacc7358d5232e69b7e1b37 Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Mon, 9 Sep 2024 18:12:30 +0100 Subject: [PATCH] reads runtime and cli versions from files (#235) Prepares for automatic update coming directly from release workflow of dapr/dapr and dapr/cli repos Signed-off-by: Elena Kolevska --- .github/workflows/dapr-deploy.yml | 23 ++++++++++++++--------- config/dapr_cli.version | 1 + config/dapr_runtime.version | 1 + 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 config/dapr_cli.version create mode 100644 config/dapr_runtime.version diff --git a/.github/workflows/dapr-deploy.yml b/.github/workflows/dapr-deploy.yml index 4612450d..68af716c 100644 --- a/.github/workflows/dapr-deploy.yml +++ b/.github/workflows/dapr-deploy.yml @@ -9,6 +9,8 @@ on: push: branches: - master + paths: + - 'config/dapr_runtime.version' workflow_dispatch: jobs: @@ -17,8 +19,6 @@ jobs: runs-on: ubuntu-latest env: DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh - DAPR_RUNTIME_VER: 1.14.0-rc.8 - DAPR_CLI_VER: 1.14.0-rc.8 DAPR_NAMESPACE: dapr-system TEST_CLUSTER_NAME: aks-longhaul-release TEST_RESOURCE_GROUP: aks-longhaul-release @@ -27,6 +27,17 @@ jobs: APP_NAMESPACE: longhaul-test KUBECTLVER: v1.19.3 steps: + - name: Checkout dapr/test-infra + uses: actions/checkout@v2 + with: + repository: dapr/test-infra + ref: refs/heads/master + path: longhaul + - name: Read versions from files + id: read_version + run: | + echo "DAPR_RUNTIME_VER=$(cat config/dapr_runtime.version)" >> $GITHUB_ENV + echo "DAPR_CLI_VER=$(cat config/dapr_cli.version)" >> $GITHUB_ENV - name: Set up Dapr CLI run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }} - name: Set up Helm ${{ env.HELMVER }} @@ -42,18 +53,12 @@ jobs: - name: Deploy dapr version ${{ env.DAPR_RUNTIME_VER }} to longhaul cluster run: | dapr upgrade -k --runtime-version ${{ env.DAPR_RUNTIME_VER }} - # Bounce apps so they pick up a new dapr version - - name: Checkout dapr/test-infra - uses: actions/checkout@v2 - with: - repository: dapr/test-infra - ref: refs/heads/master - path: longhaul - name: Setup kubectl ${{ env.KUBECTLVER }} uses: azure/setup-kubectl@v3 with: version: ${{ env.KUBECTLVER }} id: install + # Bounce apps so they pick up a new dapr version - name: Deploy test applications working-directory: ./longhaul run: | diff --git a/config/dapr_cli.version b/config/dapr_cli.version new file mode 100644 index 00000000..30f101cb --- /dev/null +++ b/config/dapr_cli.version @@ -0,0 +1 @@ +1.14.1 \ No newline at end of file diff --git a/config/dapr_runtime.version b/config/dapr_runtime.version new file mode 100644 index 00000000..a32d5a6a --- /dev/null +++ b/config/dapr_runtime.version @@ -0,0 +1 @@ +1.14.2 \ No newline at end of file