mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 23:00:08 +01:00
CI: speed up the docker_check stage
There is no point in login in to the registry if there is no need to
create a new docker image.
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
(cherry picked from commit b2b7fab7b1)
This commit is contained in:
parent
9cc446aed7
commit
b76171ca44
1 changed files with 4 additions and 4 deletions
|
|
@ -179,12 +179,12 @@ ubuntu:18.04@docker-check:
|
|||
stage: docker_prep
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
script:
|
||||
# if the check was successful, we just skip recreating the docker image
|
||||
- test -e .img_ready && exit 0
|
||||
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
|
||||
# create a Dockerfile with our dependencies
|
||||
- echo "FROM fedora:$FEDORA_VERSION" > Dockerfile
|
||||
- echo "WORKDIR /app" >> Dockerfile
|
||||
|
|
@ -221,12 +221,12 @@ fedora:27@docker-prep:
|
|||
stage: docker_prep
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
script:
|
||||
# if the check was successful, we just skip recreating the docker image
|
||||
- test -e .img_ready && exit 0
|
||||
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
|
||||
# create a Dockerfile with our dependencies
|
||||
- echo "FROM ubuntu:$UBUNTU_VERSION" > Dockerfile
|
||||
- echo "WORKDIR /app" >> Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue