fix: yml
parent
7069941f0f
commit
8b440c4a78
|
@ -19,16 +19,16 @@ steps: # 定义管道的执行步骤
|
||||||
- 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
|
- ls -a
|
||||||
# - composer install -v
|
- composer install -v
|
||||||
|
|
||||||
- name: deploy-push-images
|
- name: deploy-push-images
|
||||||
depends_on: # 依赖build管道
|
depends_on: # 依赖build管道
|
||||||
- build
|
- build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: gong921123/hyperf-2 # 推送到dockerhub仓库去
|
repo: gong921123/hyperf # 推送到dockerhub仓库去
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
insecure: true # 不使用https
|
insecure: true # 不使用https
|
||||||
username:
|
username:
|
||||||
|
@ -55,7 +55,7 @@ steps: # 定义管道的执行步骤
|
||||||
# - docker pull gong921123/hyperf:latest
|
# - docker pull gong921123/hyperf:latest
|
||||||
# - docker rmi $(docker images | grep gong921123/hyperf | awk '{print $3}')
|
# - docker rmi $(docker images | grep gong921123/hyperf | awk '{print $3}')
|
||||||
# - docker rmi $(docker images | grep "<none>" | awk '{print $3}')
|
# - docker rmi $(docker images | grep "<none>" | awk '{print $3}')
|
||||||
- docker run -itd --name hyperf-2 -p 8001:80 -v /usr/local/docker/vloumn_nginx:/etc/nginx/conf.d -v /etc/hosts:/etc/hosts --privileged=true gong921123/hyperf-2:latest
|
- docker run -itd --name hyperf -p 8001:80 -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
|
||||||
|
|
|
@ -6,4 +6,4 @@ FROM gong921123/debian-nginx-php114-74:latest
|
||||||
COPY . /var/www
|
COPY . /var/www
|
||||||
|
|
||||||
|
|
||||||
#CMD ["php", "bin/hyperf.php", "start"]
|
CMD ["php", "bin/hyperf.php", "start"]
|
||||||
|
|
Loading…
Reference in New Issue