mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 10:51:28 +00:00
v
This commit is contained in:
parent
8fb5223d9d
commit
67ecdb7759
37
.github/workflows/cache-verify.yml
vendored
37
.github/workflows/cache-verify.yml
vendored
@ -48,32 +48,39 @@ jobs:
|
||||
webapp/.env
|
||||
|
||||
build-images:
|
||||
name: Build Docker Images
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
service: [backend, webapp, neo4j]
|
||||
include:
|
||||
- name: backend
|
||||
context: ./backend
|
||||
dockerfile: ./backend/Dockerfile
|
||||
target: build
|
||||
- name: webapp
|
||||
context: ./webapp
|
||||
dockerfile: ./webapp/Dockerfile
|
||||
target: build
|
||||
- name: neo4j
|
||||
context: ./neo4j
|
||||
dockerfile: ./neo4j/Dockerfile
|
||||
target: community
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: ./build-artifacts
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- name: Build ${{ matrix.service }} image
|
||||
- name: Build ${{ matrix.name }} image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./${{ matrix.service }}
|
||||
file: ./${{ matrix.service }}/Dockerfile
|
||||
target: production
|
||||
context: ${{ matrix.context }}
|
||||
file: ${{ matrix.dockerfile }}
|
||||
target: ${{ matrix.target }}
|
||||
push: false
|
||||
outputs: type=docker,dest=/tmp/${{ matrix.service }}.tar
|
||||
- name: Upload ${{ matrix.service }} image
|
||||
outputs: type=docker,dest=/tmp/${{ matrix.name }}.tar
|
||||
- name: Upload ${{ matrix.name }} image
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.service }}-image
|
||||
path: /tmp/${{ matrix.service }}.tar
|
||||
|
||||
name: ${{ matrix.name }}-image
|
||||
path: /tmp/${{ matrix.name }}.tar
|
||||
|
||||
consolidate-environment:
|
||||
name: Consolidate Environment and Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user