This commit is contained in:
saeid_01
2023-08-22 11:54:35 +03:30
parent d118b182a4
commit f11777426a
2 changed files with 4 additions and 27 deletions
+4 -6
View File
@@ -8,13 +8,12 @@ clone:
# npm config set _auth token add command # npm config set _auth token add command
steps: steps:
- name: clone - name: clone
image: docker.willaspace.com/repository/docker-hosted/alpine/git image: docker-proxy.willaspace.com/alpine/git
commands: commands:
- 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: plugins/docker image: docker-proxy.willaspace.com/plugins/docker
mirror: https://docker.willaspace.com/repository/docker-hosted/
environment: environment:
REGISTRY_USER_NAME: REGISTRY_USER_NAME:
from_secret: registry_username from_secret: registry_username
@@ -41,8 +40,7 @@ steps:
- push - push
- name: Build docker nginx image - name: Build docker nginx image
image: plugins/docker image: docker-proxy.willaspace.com/plugins/docker
mirror: https://docker.willaspace.com/repository/docker-hosted/
settings: settings:
tags: tags:
- nginx-latest - nginx-latest
@@ -61,7 +59,7 @@ steps:
- push - push
- name: deploy - name: deploy
image: docker.willaspace.com/repository/docker-hosted/pelotech/drone-helm3:latest image: docker-proxy.willaspace.com/pelotech/drone-helm3:latest
environment: environment:
USERNAME: USERNAME:
from_secret: registry_username from_secret: registry_username
-21
View File
@@ -1,21 +0,0 @@
version: '2'
services:
app:
container_name: cssd
image: registry.willaspace.com/willaspace/cssd
#build:
# context: ./
volumes:
- /home/administrator/apps/nginx/www/cssd/storage:/var/www/storage
- /home/administrator/apps/nginx/www/cssd/public:/var/www/public
env_file: '.env'
environment:
- "DB_HOST=mysql_database"
- "REDIS_HOST=cache"
networks:
default:
external:
name: willaengine_default