This commit is contained in:
mahdi purHosseini
2023-10-26 13:31:52 +03:30
7 changed files with 22 additions and 13 deletions
+4 -3
View File
@@ -13,7 +13,7 @@ steps:
- git clone $DRONE_GIT_HTTP_URL . - git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT - git checkout $DRONE_COMMIT
- name: Build docker image - name: Build docker image
image: docker-proxy.willaspace.com/plugins/docker image: docker.willaspace.com/repository/docker-hosted/plugins/docker
environment: environment:
REGISTRY_USER_NAME: REGISTRY_USER_NAME:
from_secret: registry_username from_secret: registry_username
@@ -40,7 +40,7 @@ steps:
- push - push
- name: Build docker nginx image - name: Build docker nginx image
image: docker-proxy.willaspace.com/plugins/docker image: docker.willaspace.com/repository/docker-hosted/plugins/docker
settings: settings:
tags: tags:
- nginx-latest - nginx-latest
@@ -59,7 +59,7 @@ steps:
- push - push
- name: deploy - name: deploy
image: docker-proxy.willaspace.com/pelotech/drone-helm3:latest image: docker.willaspace.com/repository/docker-hosted/pelotech/drone-helm3:latest
environment: environment:
USERNAME: USERNAME:
from_secret: registry_username from_secret: registry_username
@@ -83,6 +83,7 @@ steps:
values: values:
- deployment.image.tag=nginx-$DRONE_BUILD_NUMBER - deployment.image.tag=nginx-$DRONE_BUILD_NUMBER
- deployment.additionalContainers[0].image=docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:$DRONE_BUILD_NUMBER - deployment.additionalContainers[0].image=docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:$DRONE_BUILD_NUMBER
- deployment.initContainers.init-artisan.image=docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:$DRONE_BUILD_NUMBER
timeout: 3000 timeout: 3000
when: when:
branch: branch:
+13 -5
View File
@@ -72,12 +72,20 @@ deployment:
# - "foo.remote" # - "foo.remote"
# - "bar.remote" # - "bar.remote"
# Init containers which runs before the app container # Init containers which runs before the app container
initContainers: initContainers:
# init-contaner: init-artisan:
# image: busybox args:
# imagePullPolicy: IfNotPresent - /bin/bash
# command: ['/bin/sh'] - -c
- (php artisan migrate --force || true) && (php artisan config:cache || true)
envFrom:
- configMapRef:
name: cssd-production-back-configmap
- secretRef:
name: cssd-production-back-secret
image: docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:latest
imagePullPolicy: IfNotPresent
# Additional labels for Deployment # Additional labels for Deployment
additionalLabels: additionalLabels:
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -4,8 +4,8 @@
<v-toolbar-title >CSSD-DOC</v-toolbar-title> <v-toolbar-title >CSSD-DOC</v-toolbar-title>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<div class="my-2"> <div class="my-2">
<a href="/dashboard" v-if="auth"><v-btn color="black">Dashboard</v-btn></a> <a href="https://app.cssd-doc.com/dashboard" v-if="auth"><v-btn color="black">Dashboard</v-btn></a>
<a href="/login" v-else><v-btn color="black">Login</v-btn></a> <a href="https://app.cssd-doc.com/login" v-else><v-btn color="black">Login</v-btn></a>
</div> </div>
</v-toolbar> </v-toolbar>
<v-parallax src="img/Static/Intro/bg.jpg" height="600"> <v-parallax src="img/Static/Intro/bg.jpg" height="600">