Test deploy #31
5 changed files with 26 additions and 30 deletions
2
.github/workflows/api-container.yml
vendored
2
.github/workflows/api-container.yml
vendored
|
|
@ -45,8 +45,6 @@ jobs:
|
||||||
echo "workflow_envs=$workflow_envs" >> $GITHUB_OUTPUT
|
echo "workflow_envs=$workflow_envs" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo "Running $workflow_type pipeline in environments: $workflow_envs" >> $GITHUB_STEP_SUMMARY
|
echo "Running $workflow_type pipeline in environments: $workflow_envs" >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Install jq
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y jq
|
|
||||||
- name: Extract Version
|
- name: Extract Version
|
||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
38
.github/workflows/pr-validation.yml
vendored
38
.github/workflows/pr-validation.yml
vendored
|
|
@ -1,19 +1,19 @@
|
||||||
name: PR Validation
|
name: PR Validation
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr-validation:
|
pr-validation:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: ['self-hosted', 'pi']
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: TimonVS/pr-labeler-action@v5
|
- uses: TimonVS/pr-labeler-action@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
configuration-path: .github/configs/pr-labeler-configuration.yml
|
configuration-path: .github/configs/pr-labeler-configuration.yml
|
||||||
|
|
|
||||||
4
.github/workflows/web-container.yml
vendored
4
.github/workflows/web-container.yml
vendored
|
|
@ -18,7 +18,7 @@ on:
|
||||||
- web/**
|
- web/**
|
||||||
jobs:
|
jobs:
|
||||||
determine-workflow:
|
determine-workflow:
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
outputs:
|
outputs:
|
||||||
workflow_type: ${{ steps.workflow.outputs.workflow_type }}
|
workflow_type: ${{ steps.workflow.outputs.workflow_type }}
|
||||||
workflow_envs: ${{ steps.workflow.outputs.workflow_envs }}
|
workflow_envs: ${{ steps.workflow.outputs.workflow_envs }}
|
||||||
|
|
@ -45,8 +45,6 @@ jobs:
|
||||||
echo "workflow_envs=$workflow_envs" >> $GITHUB_OUTPUT
|
echo "workflow_envs=$workflow_envs" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo "Running $workflow_type pipeline in environments: $workflow_envs" >> $GITHUB_STEP_SUMMARY
|
echo "Running $workflow_type pipeline in environments: $workflow_envs" >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Install jq
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y jq
|
|
||||||
- name: Extract Version
|
- name: Extract Version
|
||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
6
.github/workflows/web-deploy-nonprod.yml
vendored
6
.github/workflows/web-deploy-nonprod.yml
vendored
|
|
@ -26,7 +26,7 @@ on:
|
||||||
COOLIFY_TOKEN: {}
|
COOLIFY_TOKEN: {}
|
||||||
jobs:
|
jobs:
|
||||||
check-inputs:
|
check-inputs:
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check secrets present
|
- name: Check secrets present
|
||||||
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
needs: check-inputs
|
needs: check-inputs
|
||||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type != 'release'
|
if: needs.check-inputs.result == 'success' && inputs.workflow_type != 'release'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -83,7 +83,7 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: needs.build.result == 'success' && inputs.workflow_type != 'release'
|
if: needs.build.result == 'success' && inputs.workflow_type != 'release'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
|
||||||
6
.github/workflows/web-deploy-prod.yml
vendored
6
.github/workflows/web-deploy-prod.yml
vendored
|
|
@ -26,7 +26,7 @@ on:
|
||||||
COOLIFY_TOKEN: {}
|
COOLIFY_TOKEN: {}
|
||||||
jobs:
|
jobs:
|
||||||
check-inputs:
|
check-inputs:
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check secrets present
|
- name: Check secrets present
|
||||||
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
needs: check-inputs
|
needs: check-inputs
|
||||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type == 'release'
|
if: needs.check-inputs.result == 'success' && inputs.workflow_type == 'release'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -83,7 +83,7 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
if: needs.build.result == 'success' && inputs.workflow_type == 'release'
|
if: needs.build.result == 'success' && inputs.workflow_type == 'release'
|
||||||
environment: ${{ inputs.environments }}
|
environment: ${{ inputs.environments }}
|
||||||
runs-on: ['self-hosted','pi']
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue