Archived
Private
Public Access
1
0

migrated to gitlab CI/CD

This commit is contained in:
2023-09-12 17:15:24 +02:00
parent 282cc97fff
commit c5dce94721
2 changed files with 18 additions and 51 deletions

18
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,18 @@
variables:
DOCKER_IMAGE: registry.gitlab.com/leon.hoppe/betteriserv
build-frontend:
image: docker:latest
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.gitlab.com
- docker build -t $DOCKER_IMAGE:frontend BetterIServ.Mobile/
- docker push $DOCKER_IMAGE:frontend
build-backend:
image: docker:latest
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD registry.gitlab.com
- docker build -t $DOCKER_IMAGE:backend BetterIServ.Backend/
- docker push $DOCKER_IMAGE:backend