Skip to content
Snippets Groups Projects
Verified Commit ca13dfbb authored by Charles Decoux's avatar Charles Decoux
Browse files

ci: add frontend & backend build on tag


Signed-off-by: default avatarCharles Decoux <charles@cri.epita.fr>
parent 258f7cd8
Branches
Tags
No related merge requests found
......@@ -109,6 +109,20 @@ django:
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:buildcache \
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:buildcache,mode=max
django_tag:
<<: *build
only:
- tags
script:
- |
buildctl-daemonless.sh build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=docker \
--output type=image,\"name=$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG\",push=true \
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:buildcache \
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:buildcache,mode=max
frontend:
<<: *build
script:
......@@ -121,6 +135,20 @@ frontend:
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/frontend/$CI_COMMIT_REF_SLUG:buildcache \
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/frontend/$CI_COMMIT_REF_SLUG:buildcache,mode=max
frontend_tag:
<<: *build
only:
- tags
script:
- |
buildctl-daemonless.sh build \
--frontend=dockerfile.v0 \
--local context=frontend \
--local dockerfile=frontend \
--output type=image,\"name=$CI_REGISTRY_IMAGE/frontend:$CI_COMMIT_TAG\",push=true \
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/frontend/$CI_COMMIT_REF_SLUG:buildcache \
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/frontend/$CI_COMMIT_REF_SLUG:buildcache,mode=max
kea:
<<: *build
script:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment