Update job file
Some checks failed
Continuous Stack Deployment Test / Deploy test stack (push) Failing after 35s
Some checks failed
Continuous Stack Deployment Test / Deploy test stack (push) Failing after 35s
This commit is contained in:
parent
d76461e718
commit
1ec50b73dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user