13 Commits

2 changed files with 10 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ jobs:
cicd/data/docker password | REGISTRY_PASSWORD ; cicd/data/docker password | REGISTRY_PASSWORD ;
cicd/data/docker username | REGISTRY_USERNAME ; cicd/data/docker username | REGISTRY_USERNAME ;
cicd/data/submodule token | SUBMODULE_TOKEN ; cicd/data/submodule token | SUBMODULE_TOKEN ;
cicd/data/submodule npm_token | NPM_TOKEN ;
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@@ -73,7 +73,11 @@ jobs:
- name: Build Docker image - name: Build Docker image
run: | run: |
docker build -f ${{ inputs.DOCKERFILE_PATH }} -t ${{ inputs.REGISTRY }}/${{ inputs.USER_FOR_IMAGE_STORE }}/${{ inputs.APP_NAME }}:${{ env.VERSION }} . docker build \
--build-arg SUBMODULE_TOKEN=${{ env.NPM_TOKEN }} \
-f ${{ inputs.DOCKERFILE_PATH }} \
-t ${{ inputs.REGISTRY }}/${{ inputs.USER_FOR_IMAGE_STORE }}/${{ inputs.APP_NAME }}:${{ env.VERSION }} \
.
- name: Push Docker image - name: Push Docker image
run: | run: |

View File

@@ -39,9 +39,11 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install --legacy-peer-deps
- name: Export secrets for prisma - name: Export secrets for prisma
run: | run: |