mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- fix conflict local output and load
This commit is contained in:
parent
368ec8ff23
commit
d23aec3cbd
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -38,8 +38,6 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create output folder
|
|
||||||
run: mkdir -p ./docker
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# NEO4J ##################################################################
|
# NEO4J ##################################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -50,15 +48,14 @@ jobs:
|
|||||||
tags: latest
|
tags: latest
|
||||||
path: neo4j/
|
path: neo4j/
|
||||||
push: false
|
push: false
|
||||||
load: true
|
outputs: type=local,dest=/tmp/neo4j.tar
|
||||||
outputs: type=local,dest=./docker/neo4j.tar
|
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docker-neo4j-image
|
name: docker-neo4j-image
|
||||||
path: ./docker/neo4j.tar
|
path: /tmp/neo4j.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: DOCKER BUILD TEST BACKEND #############################################
|
# JOB: DOCKER BUILD TEST BACKEND #############################################
|
||||||
@ -73,8 +70,6 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create output folder
|
|
||||||
run: mkdir -p ./docker
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# BUILD BACKEND DOCKER IMAGE (build) #####################################
|
# BUILD BACKEND DOCKER IMAGE (build) #####################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -86,15 +81,14 @@ jobs:
|
|||||||
target: build
|
target: build
|
||||||
path: backend/
|
path: backend/
|
||||||
push: false
|
push: false
|
||||||
load: true
|
outputs: type=local,dest=/tmp/backend.tar
|
||||||
outputs: type=local,dest=./docker/backend.tar
|
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docker-backend-image
|
name: docker-backend-image
|
||||||
path: ./docker/backend.tar
|
path: /tmp/backend.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: DOCKER BUILD TEST WEBAPP ##############################################
|
# JOB: DOCKER BUILD TEST WEBAPP ##############################################
|
||||||
@ -109,8 +103,6 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create output folder
|
|
||||||
run: mkdir -p ./docker
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# BUILD WEBAPP DOCKER IMAGE (build) ######################################
|
# BUILD WEBAPP DOCKER IMAGE (build) ######################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -123,14 +115,14 @@ jobs:
|
|||||||
path: webapp/
|
path: webapp/
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
outputs: type=local,dest=./docker/webapp.tar
|
outputs: type=local,dest=/tmp/webapp.tar
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docker-webapp-image
|
name: docker-webapp-image
|
||||||
path: ./docker/webapp.tar
|
path: /tmp/webapp.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: AFTER DOCKER BUILD ####################################################
|
# JOB: AFTER DOCKER BUILD ####################################################
|
||||||
@ -156,8 +148,6 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create artifact folder
|
|
||||||
run: mkdir -p ./docker
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# DOWNLOAD DOCKER IMAGE ##################################################
|
# DOWNLOAD DOCKER IMAGE ##################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -165,9 +155,9 @@ jobs:
|
|||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docker-backend-image
|
name: docker-backend-image
|
||||||
path: ./docker/backend.tar
|
path: /tmp/backend.tar
|
||||||
- name: Load Docker Image
|
- name: Load Docker Image
|
||||||
run: docker load < ./docker/backend.tar
|
run: docker load < /tmp/backend.tar
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# LINT BACKEND ###########################################################
|
# LINT BACKEND ###########################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -187,8 +177,6 @@ jobs:
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create artifact folder
|
|
||||||
run: mkdir -p ./docker
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# DOWNLOAD DOCKER IMAGE ##################################################
|
# DOWNLOAD DOCKER IMAGE ##################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -196,9 +184,9 @@ jobs:
|
|||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: docker-webapp-image
|
name: docker-webapp-image
|
||||||
path: ./docker/webapp.tar
|
path: /tmp/webapp.tar
|
||||||
- name: Load Docker Image
|
- name: Load Docker Image
|
||||||
run: docker load < ./docker/webapp.tar
|
run: docker load < /tmp/webapp.tar
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# LINT WEBAPP ############################################################
|
# LINT WEBAPP ############################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user