test-continuous-deployment/.gitea/workflows/test-deployment.yml
David Boreham a61c958909
Some checks failed
Continuous Stack Deployment Test / Deploy test stack (push) Failing after 1m19s
Add trigger
2024-06-06 11:29:49 -06:00

43 lines
1.3 KiB
YAML

name: Continuous Stack Deployment Test
on:
push:
branches: '*'
paths:
- '!**'
- '.gitea/workflows/triggers/test-deployment'
jobs:
test:
name: "Deploy test stack"
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
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"
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: ./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
./deploy/deploy-stack.sh