Skip to content
Snippets Groups Projects
Commit ba8644b8 authored by M9713's avatar M9713
Browse files

Add new file

parent 450844d2
No related branches found
No related tags found
No related merge requests found
stages:
- build
- deploy
build:
stage: build
when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
# Build Backend
- echo "Building Backend"
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/conduit-backend --dockerfile $CI_PROJECT_DIR/conduit-backend/Dockerfile --destination $CI_REGISTRY_IMAGE:backend
deploy:
# tags:
# - examplee
stage: deploy
when: manual
script: echo "Deploying"
image: bitnami/kubectl:latest
script:
- kubectl apply -f service.yaml
- kubectl apply -f deployment.yaml
- kubectl -n default rollout restart deployment default
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment