fix: sd9
continuous-integration/drone/tag Build is passing Details

develop v4
Unshift 2025-09-26 15:07:19 +08:00
parent dd7c92ae1c
commit 9740f54ea7
2 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ steps:
image: plugins/docker image: plugins/docker
pull: if-not-exists pull: if-not-exists
settings: settings:
repo: gong921123/hyperfa repo: gong921123/hyperfa # 这个地址明确了镜像最终要被推送并存储到的阿里云容器镜像仓库的具体位置 和下面的tag 构建完整的路径
registry: docker.io registry: docker.io
insecure: true insecure: true
username: username:

View File

@ -8,8 +8,8 @@ steps:
pull: if-not-exists pull: if-not-exists
commands: commands:
- composer -v - composer -v
- ls -a # - ls -a
- composer install -v # - composer install -v
- name: deploy-push-images - name: deploy-push-images
depends_on: depends_on:
@ -50,6 +50,7 @@ steps:
- if [ $(docker images | grep "<none>" | wc -l) -gt 0 ]; then docker rmi $(docker images | grep "<none>" | awk '{print $3}'); fi - if [ $(docker images | grep "<none>" | wc -l) -gt 0 ]; then docker rmi $(docker images | grep "<none>" | awk '{print $3}'); fi
- docker run -itd --name hyperf -p 8001:8001 -v /var/projects:/var/www -v /usr/local/docker/vloumn_nginx:/etc/nginx/conf.d -v /etc/hosts:/etc/hosts --privileged=true registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74:${DRONE_TAG} - docker run -itd --name hyperf -p 8001:8001 -v /var/projects:/var/www -v /usr/local/docker/vloumn_nginx:/etc/nginx/conf.d -v /etc/hosts:/etc/hosts --privileged=true registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74:${DRONE_TAG}
- echo ====部署成功======= - echo ====部署成功=======
trigger: trigger:
# branch: # branch:
# - develop # - develop