diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf918ed..d4c4e42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,8 +44,8 @@ deploy_to_cluster: echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" fi - kubectl get pods - - kubectl apply -f deploy/manifest.yaml +# - kubectl apply -f deploy/manifest.yaml - | if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then - kubectl -n ecosystem rollout restart deployment oauth +# kubectl -n ecosystem rollout restart deployment oauth fi diff --git a/deploy/manifest.yaml b/deploy/manifest.yaml index 72e787a..253de92 100644 --- a/deploy/manifest.yaml +++ b/deploy/manifest.yaml @@ -1,22 +1,22 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: oauth + name: your-name namespace: ecosystem spec: selector: matchLabels: - app: oauth + app: your-name framework: laravel template: metadata: labels: - app: oauth + app: your-name framework: laravel spec: containers: - - name: oauth-http + - name: your-name-http image: registry.daisukide.com:2083/ecosystem/oauth:latest imagePullPolicy: Always resources: @@ -45,23 +45,23 @@ spec: name: oauth-secret key: redis-password volumeMounts: - - name: oauth-storage + - name: your-name-storage mountPath: /app/storage imagePullSecrets: - name: registry volumes: - - name: oauth-storage + - name: your-name-storage persistentVolumeClaim: - claimName: oauth-storage-pvc + claimName: your-name-storage-pvc --- apiVersion: v1 kind: Service metadata: - name: oauth + name: your-name namespace: ecosystem spec: selector: - app: oauth + app: your-name framework: laravel ports: - port: 80 @@ -70,11 +70,11 @@ spec: apiVersion: v1 kind: ConfigMap metadata: - name: oauth-env + name: your-name-env namespace: ecosystem labels: env: prod - app: oauth + app: your-name data: APP_ENV: "production" DB_USERNAME: "ecosystem_oauth"