Unverified Commit 723f7eef authored by karp's avatar karp
Browse files

Make `testing` optional

parent f8217c9d
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ docker-build:
        name: gcr.io/kaniko-project/executor:debug
        entrypoint: [""]
    stage: build
    # Run build stage regardless of the status of the test stage
    when: always
    before_script:
        - mkdir -p /kaniko/.docker
        - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
@@ -37,4 +39,3 @@ docker-build:
        - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
    only:
        - master
    needs: [testing]