diff --git a/.gitea/workflows/test-deployment.yml b/.gitea/workflows/test-deployment.yml index 4a3c256..f9679bb 100644 --- a/.gitea/workflows/test-deployment.yml +++ b/.gitea/workflows/test-deployment.yml @@ -3,8 +3,9 @@ name: Continuous Stack Deployment Test on: push: branches: '*' - schedule: # Deploy every hour for now for test purposes - - cron: '42 * * * *' + paths: + - '!**' + - '.gitea/workflows/triggers/test-deployment' jobs: test: @@ -12,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Clone project repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 # 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" @@ -29,6 +30,12 @@ jobs: run: python3 --version - name: "Install stack orchestrator" run: ./scripts/install-so.sh + - name: "Clone target stack" + uses: actions/checkout@v4 + with: + repository: cerc-io/test-deployment-stack + - name: "Show checked out files" + run: ls -lR - name: "Deploy test stack" run: | PATH=$PATH:~/bin diff --git a/.gitea/workflows/triggers/test-deployment b/.gitea/workflows/triggers/test-deployment new file mode 100644 index 0000000..08ae071 --- /dev/null +++ b/.gitea/workflows/triggers/test-deployment @@ -0,0 +1 @@ +# Change this file to trigger running the test-deployment job