ci(gitlab-ci): fix artifact paths for frontend and backend downstreams

This commit is contained in:
Sarah Vaupel 2024-08-26 13:56:08 +02:00
parent 1658e3bb22
commit 6f8e7062fa
3 changed files with 8 additions and 7 deletions

View File

@ -74,7 +74,7 @@ setup:containers:frontend: &containers-frontend
image: ${IMAGE_BUILDER}
script:
- FRONTEND_IMAGE_VERSION=`cat frontend-image-version`
- buildah bud -t frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION} --build-arg PROJECT_DIR=${CI_PROJECT_DIR} --volume ${CI_PROJECT_DIR}:${CI_PROJECT_DIR} --file docker/frontend/Dockerfile
- buildah bud -t frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION} --build-arg PROJECT_DIR=${CI_PROJECT_DIR} --volume ${CI_PROJECT_DIR}:/tmp/${CI_PROJECT_DIR} --file docker/frontend/Dockerfile
- buildah push --creds "${CI_REGISTRY_USER}:${CI_JOB_TOKEN}" frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION} ${CI_REGISTRY_IMAGE}/frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION}
rules:
- changes:

View File

@ -22,7 +22,7 @@ stages:
default:
image:
name: ${CI_REGISTRY_IMAGE}/backend/${CI_COMMIT_REF_SLUG}:${BACKEND_IMAGE_VERSION}
# entrypoint: [""]
entrypoint: [""]
docker:
platform: x86_64
artifacts:
@ -38,7 +38,8 @@ compile:
- make -- backend-build${PROD_BUILD}
artifacts:
paths:
- /fradrive/.stack-work/
- ${CI_PROJECT_DIR}/.stack-work/
- ${CI_PROJECT_DIR}/.stack/
cache: &backend-cache
lint:

View File

@ -38,14 +38,14 @@ compile:
- make -- frontend-build
artifacts:
paths:
- /fradrive/node_modules
- /fradrive/well-known
- ${CI_PROJECT_DIR}/node_modules
- ${CI_PROJECT_DIR}/well-known
cache:
- &frontend-cache
key: default-frontend
paths:
- /fradrive/.npm/
- /fradrive/.well-known-cache/
- ${CI_PROJECT_DIR}/.npm/
- ${CI_PROJECT_DIR}/.well-known-cache/
lint:
stage: lint