From 1ec50b73dcddfbd8ed1d51022b69fa725c3f0ba7 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Jun 2024 06:20:17 -0600 Subject: [PATCH] Update job file --- .gitea/workflows/test-deployment.yml | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/test-deployment.yml b/.gitea/workflows/test-deployment.yml index ca0dfd0..87a5d71 100644 --- a/.gitea/workflows/test-deployment.yml +++ b/.gitea/workflows/test-deployment.yml @@ -8,6 +8,10 @@ on: - '.gitea/workflows/triggers/test-deployment' - '.gitea/workflows/test-deployment.yml' +env: + # CERC_SCRIPT_DEBUG: true + CERC_REPO_BASE_DIR: ${{ gitea.workspace }}/repo-base-dir + jobs: test: name: "Deploy test stack" @@ -16,7 +20,7 @@ jobs: - name: "Clone project repository" uses: actions/checkout@v4 with: - path: 'deployment-tools' + path: 'deployment-repo' # At present the stock setup-python action fails on Linux/aarch64 # Conditional steps below workaroud this by using deadsnakes for that case only - name: "Install Python for ARM on Linux" @@ -37,27 +41,12 @@ jobs: uses: actions/checkout@v4 with: repository: cerc-io/test-deployment-stack + token: ${{ secrets.CICD_REPO_TOKEN }} ref: 'main' path: 'test-deployment-stack' - - name: "Create fake deployment dir" - run: | - mkdir deployments - mkdir deployments/test-deployment - echo "Some data" > deployments/test-deployment/data.txt - - name: "Test uploading an artifact" - uses: actions/upload-artifact@v3 - with: - name: test-deployment-data - path: | - deployments - - name: "Test download artifact" - uses: actions/download-artifact@v4 - with: - name: deployments - path: new-deployments - name: "Show checked out files" run: ls -lR - - name: "Deploy test stack" + - name: "Test deployment scripting" run: | PATH=$PATH:~/bin - ./deployment-tools/deploy/deploy-stack.sh + ./deployment-repo/deploy/deploy-stack.sh test main