в gitlab не приходит pipeline при установке docker выдает Cannot perform an interactive login from a non TTY device
image: busybox:latest
stages:
- build
- test
- deploy variables: IMAGE_TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
build1: stage: build script: - echo "Do your build here" - echo one >> file1.txt artifacts: paths: - file1.txt expire_in: 30 days
docker build: image: docker:latest stage: build services: - docker:dind script: - docker login -u $SI_REGISTRY_USER -p $SI_REGISTRY_PASSWORD $CI_REGISTRY - echo $SI_REGISTRY_USER $SI_REGISTRY_PASSWORD $CI_REGISTRY $SI_REGISTRY_IMAGE:$IMAGE_TAG - docker build -t $SI_REGISTRY_IMAGE:$IMAGE_TAG - docker push $SI_REGISTRY_IMAGE:$IMAGE_TAG
test1: stage: test script: - echo "Do a test here" - echo "For example run a test suite" - grep one file1.txt - sleep 30 test2: stage: test script: - echo "Do another parallel test here" - echo "For example run a lint test" - grep one file1.txt
deploy1: stage: deploy script: - echo "Do your deploy here" environment: production
pages: stage: deploy script: - mkdir -p public - cp file1.txt public/index.html - echo 404 >> public/404.html artifacts: exclude: - public/404.html paths: - public only: - main