compose: use docker compose, not docker-compose
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* get on with the times...plus the old form does not like the compose file anymore * also add an empty volume to make compose happy
This commit is contained in:
parent
b796f72abc
commit
9bbfef4c39
10
.drone.yml
10
.drone.yml
@ -147,7 +147,7 @@ steps:
|
|||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -f docker-compose.yml config -q
|
- docker compose -f docker-compose.yml config -q
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
pull: always
|
pull: always
|
||||||
@ -160,7 +160,7 @@ steps:
|
|||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
commands:
|
commands:
|
||||||
- docker-compose build --build-arg VCS_REF=${DRONE_COMMIT} --no-cache --pull
|
- docker compose build --build-arg VCS_REF=${DRONE_COMMIT} --no-cache --pull
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: s
|
- name: s
|
||||||
@ -292,7 +292,7 @@ steps:
|
|||||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -f docker-compose.yml config -q
|
- docker compose -f docker-compose.yml config -q
|
||||||
|
|
||||||
- name: go fmt
|
- name: go fmt
|
||||||
image: docker.io/library/golang:1.21.0-alpine3.18
|
image: docker.io/library/golang:1.21.0-alpine3.18
|
||||||
@ -348,7 +348,7 @@ steps:
|
|||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose build --build-arg VCS_REF=${DRONE_COMMIT} --no-cache
|
- docker compose build --build-arg VCS_REF=${DRONE_COMMIT} --no-cache
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
status: success
|
status: success
|
||||||
@ -362,7 +362,7 @@ steps:
|
|||||||
- name: s
|
- name: s
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -p ${DRONE_REPO_NAME} up
|
- docker compose -p ${DRONE_REPO_NAME} up
|
||||||
-d
|
-d
|
||||||
--remove-orphans
|
--remove-orphans
|
||||||
--scale homepage=1
|
--scale homepage=1
|
||||||
|
@ -50,4 +50,7 @@ networks:
|
|||||||
# internal: true
|
# internal: true
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
none:
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user