fix: YML
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
a086786ae6
commit
3479b1e5e9
40
.drone.yml
40
.drone.yml
|
@ -16,25 +16,25 @@ steps: # 定义管道的执行步骤
|
||||||
# - ls -a
|
# - ls -a
|
||||||
# ****************** 直接丢掉 默认会直接拉代码 ******************
|
# ****************** 直接丢掉 默认会直接拉代码 ******************
|
||||||
|
|
||||||
# - name: build # 步骤名称
|
- name: build # 步骤名称
|
||||||
# image: gong921123/debian-nginx-php114-74:latest # 当前步骤使用的镜像 image: composer:latest 这里还是使用自己的环境 否则可能一些依赖版本问题会出现,这里的composer是 2.5.4 版本
|
image: gong921123/debian-nginx-php114-74:latest # 当前步骤使用的镜像 image: composer:latest 这里还是使用自己的环境 否则可能一些依赖版本问题会出现,这里的composer是 2.5.4 版本
|
||||||
# commands: # 当前步骤执行的命令
|
commands: # 当前步骤执行的命令
|
||||||
## - composer -v
|
# - composer -v
|
||||||
## - ls -a
|
|
||||||
## - composer install -v
|
|
||||||
# - ls -a
|
# - ls -a
|
||||||
# - name: deploy-push-images
|
# - composer install -v
|
||||||
# image: plugins/docker
|
- ls -a
|
||||||
# settings:
|
- name: deploy-push-images
|
||||||
# repo: gong921123/hyperf # 推送到dockerhub仓库去
|
image: plugins/docker
|
||||||
# registry: docker.io
|
settings:
|
||||||
# insecure: true # 不使用https
|
repo: gong921123/hyperf # 推送到dockerhub仓库去
|
||||||
# username:
|
registry: docker.io
|
||||||
# from_secret: docker_username
|
insecure: true # 不使用https
|
||||||
# password:
|
username:
|
||||||
# from_secret: docker_password
|
from_secret: docker_username
|
||||||
# dockerfile: docker/Dockerfile
|
password:
|
||||||
# tags: latest
|
from_secret: docker_password
|
||||||
|
dockerfile: docker/Dockerfile
|
||||||
|
tags: latest
|
||||||
|
|
||||||
|
|
||||||
- name: deploy-pull-project
|
- name: deploy-pull-project
|
||||||
|
@ -56,8 +56,8 @@ steps: # 定义管道的执行步骤
|
||||||
# - docker rmi $(docker images | grep "<none>" | awk '{print $3}')
|
# - docker rmi $(docker images | grep "<none>" | awk '{print $3}')
|
||||||
- docker run -itd --name hyperf -p 8001:80 -v /usr/local/var/www/hyperf:/var/www -v /usr/local/docker/vloumn_nginx:/etc/nginx/conf.d -v /etc/hosts:/etc/hosts --privileged=true gong921123/hyperf:latest
|
- docker run -itd --name hyperf -p 8001:80 -v /usr/local/var/www/hyperf:/var/www -v /usr/local/docker/vloumn_nginx:/etc/nginx/conf.d -v /etc/hosts:/etc/hosts --privileged=true gong921123/hyperf:latest
|
||||||
- docker exec -it gong921123/hyperf /bin/bash
|
- docker exec -it gong921123/hyperf /bin/bash
|
||||||
- cd var/www
|
# - cd var/www
|
||||||
- php bin/hyperf.php start
|
# - php bin/hyperf.php start
|
||||||
- echo ====部署成功=======
|
- echo ====部署成功=======
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,5 @@ FROM gong921123/debian-nginx-php114-74:latest
|
||||||
# 这里复制了这个项目的所有
|
# 这里复制了这个项目的所有
|
||||||
# test
|
# test
|
||||||
COPY . /var/www
|
COPY . /var/www
|
||||||
|
|
||||||
|
ENTRYPOINT ["php", "/opt/www/bin/hyperf.php", "start"]
|
||||||
|
|
Loading…
Reference in New Issue