mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
start mariadb, add github workflow
This commit is contained in:
parent
bf789c88fc
commit
b414a36ba1
5
.github/file-filters.yml
vendored
5
.github/file-filters.yml
vendored
@ -58,4 +58,7 @@ mariadb: &mariadb
|
||||
- 'mariadb/**/*'
|
||||
|
||||
nginx: &nginx
|
||||
- 'nginx/**/*'
|
||||
- 'nginx/**/*'
|
||||
|
||||
deploy-bare-metal: &deploy-bare-metal
|
||||
- 'deployment/bare_metal/**/*'
|
||||
32
.github/workflows/test_deploy.yml
vendored
Normal file
32
.github/workflows/test_deploy.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
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: Deploy Bare Metal | Build image
|
||||
run: docker build -f ./deployment/bare_metal/Dockerfile --build-arg BRANCH_NAME=${{ github.ref_name }} -t "gradido/deploy-bare-metal:local" .
|
||||
@ -53,7 +53,6 @@ RUN ln -s /app/gradido/deployment/bare_metal/nginx/sites-enabled/default /etc/ng
|
||||
RUN ln -s /app/gradido/deployment/bare_metal/nginx/common /etc/nginx/
|
||||
RUN rmdir /etc/nginx/conf.d
|
||||
RUN ln -s /app/gradido/deployment/bare_metal/nginx/conf.d /etc/nginx/
|
||||
RUN nginx -t
|
||||
|
||||
SHELL ["/bin/bash", "--login", "-c"]
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
@ -107,6 +106,8 @@ RUN envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < federation/.env.templat
|
||||
###########################################################################################
|
||||
FROM install as start
|
||||
|
||||
RUN /etc/init.d/mariadb start
|
||||
|
||||
WORKDIR /app/gradido/deployment/bare_metal
|
||||
|
||||
# mock sudo
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user