Skip to content

Commit

Permalink
fix: 构建时检查docker起来了没
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Mar 1, 2024
1 parent ca4369a commit 57efe34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ docker:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
only: [master]
before_script:
- until docker info; do sleep 1; done
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx create --use
Expand All @@ -40,6 +42,8 @@ docker-tag:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
only: [ tags ]
before_script:
- until docker info; do sleep 1; done
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx create --use
Expand Down

0 comments on commit 57efe34

Please sign in to comment.