mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Gradido Deploy Test CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - Deploy Bare Metal
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
deploy-bare-metal: ${{ steps.changes.outputs.deploy-bare-metal }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Check for deploy-bare-metal file changes
|
|
uses: dorny/paths-filter@v2.11.1
|
|
id: changes
|
|
with:
|
|
token: ${{ github.token }}
|
|
filters: .github/file-filters.yml
|
|
list-files: shell
|
|
|
|
build_test:
|
|
if: needs.files-changed.outputs.deploy-bare-metal == 'true'
|
|
name: Docker Build Test - Deploy Bare Metal
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: docker-compose mariadb
|
|
run: docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
|
|
|
|
- name: Deploy Bare Metal | Build image
|
|
run: docker build --network host -f ./deployment/bare_metal/Dockerfile --build-arg BRANCH_NAME=${{ github.ref_name }} -t "gradido/deploy-bare-metal:local" .
|