test-continuous-deployment/.gitea/workflows/test-deployment.yml
David Boreham 1ec50b73dc
Some checks failed
Continuous Stack Deployment Test / Deploy test stack (push) Failing after 35s
Update job file
2024-06-10 06:20:17 -06:00

53 lines
1.6 KiB
YAML

name: Continuous Stack Deployment Test
on:
push:
branches: '*'
paths:
- '!**'
- '.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"
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v4
with:
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"
if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }}
uses: deadsnakes/action@v3.0.1
with:
python-version: '3.8'
- name: "Install Python cases other than ARM on Linux"
if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }}
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: "Print Python version"
run: python3 --version
- name: "Install stack orchestrator"
run: ./deployment-tools/scripts/install-so.sh
- name: "Clone target stack"
uses: actions/checkout@v4
with:
repository: cerc-io/test-deployment-stack
token: ${{ secrets.CICD_REPO_TOKEN }}
ref: 'main'
path: 'test-deployment-stack'
- name: "Show checked out files"
run: ls -lR
- name: "Test deployment scripting"
run: |
PATH=$PATH:~/bin
./deployment-repo/deploy/deploy-stack.sh test main