diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index dae3338..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,53 +0,0 @@ -build-latest: - stage: build - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - | - /kaniko/executor \ - --context $CI_PROJECT_DIR \ - --dockerfile $CI_PROJECT_DIR/Dockerfile \ - --destination $CI_REGISTRY_IMAGE \ - --build-arg "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ - --build-arg "COMMIT=$CI_COMMIT_SHA" \ - --build-arg "VERSION=$CI_COMMIT_REF_SLUG" - only: - - master - -build-branch: - stage: build - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - | - /kaniko/executor \ - --context $CI_PROJECT_DIR \ - --dockerfile $CI_PROJECT_DIR/Dockerfile \ - --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\ - --build-arg "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ - --build-arg "COMMIT=$CI_COMMIT_SHA" \ - --build-arg "VERSION=$CI_COMMIT_REF_SLUG" - except: - - master - -build-curl: - stage: build-others - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [""] - script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - | - /kaniko/executor \ - --context $CI_PROJECT_DIR/curl \ - --dockerfile $CI_PROJECT_DIR/curl/Dockerfile \ - --destination $CI_REGISTRY_IMAGE/curl \ - --build-arg "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ - --build-arg "COMMIT=$CI_COMMIT_SHA" \ - --build-arg "VERSION=$CI_COMMIT_REF_SLUG" - only: - - master