mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
frontend docker build workflow
This commit is contained in:
parent
fd7f7e688f
commit
2069fffed8
3
.github/file-filters.yml
vendored
3
.github/file-filters.yml
vendored
@ -42,6 +42,9 @@ frontend-test-unit-code: &frontend-test-unit-code
|
|||||||
frontend-test-build-code: &frontend-test-build-code
|
frontend-test-build-code: &frontend-test-build-code
|
||||||
- 'frontend/**/*'
|
- 'frontend/**/*'
|
||||||
|
|
||||||
|
frontend-test-build-docker: &frontend-test-build-docker
|
||||||
|
- 'frontend/**/*'
|
||||||
|
|
||||||
frontend-test-build-docs: &frontend-test-build-docs
|
frontend-test-build-docs: &frontend-test-build-docs
|
||||||
- 'frontend/**/*.md'
|
- 'frontend/**/*.md'
|
||||||
- 'frontend/.vuepress/*'
|
- 'frontend/.vuepress/*'
|
||||||
|
|||||||
@ -26,21 +26,27 @@ jobs:
|
|||||||
name: Build Docker Production - Frontend
|
name: Build Docker Production - Frontend
|
||||||
needs: files-changed
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
WORKING_DIRECTORY: ./frontend
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Frontend | Build Docker Production
|
- name: Frontend | Build Docker Production
|
||||||
run: docker compose -f docker-compose.yml build
|
run: docker compose -f docker-compose.yml build
|
||||||
|
working-directory: ${{env.WORKING_DIRECTORY}}
|
||||||
|
|
||||||
build-development:
|
build-development:
|
||||||
if: needs.files-changed.outputs.changes == 'true'
|
if: needs.files-changed.outputs.changes == 'true'
|
||||||
name: Build Docker Development - Frontend
|
name: Build Docker Development - Frontend
|
||||||
needs: files-changed
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
WORKING_DIRECTORY: ./frontend
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Frontend | Build Docker Development
|
- name: Frontend | Build Docker Development
|
||||||
run: docker compose build
|
run: docker compose build
|
||||||
|
working-directory: ${{env.WORKING_DIRECTORY}}
|
||||||
Loading…
x
Reference in New Issue
Block a user