Commit 6a8c7379 authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason

Revert "Merge branch '33601-use-ci-default-branch-take-2' into 'master'"

This reverts merge request !19454
parent cc09e305
...@@ -113,10 +113,9 @@ promoteBeta: ...@@ -113,10 +113,9 @@ promoteBeta:
promoteProduction: promoteProduction:
extends: .promote_job extends: .promote_job
stage: production stage: production
# We only allow production promotion on the default branch because # We only allow production promotion on `master` because
# it has its own production scoped secret variables # it has its own production scoped secret variables
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
script: script:
- bundle exec fastlane promote_beta_to_production - bundle exec fastlane promote_beta_to_production
...@@ -10,8 +10,7 @@ docker-build-master: ...@@ -10,8 +10,7 @@ docker-build-master:
- docker build --pull -t "$CI_REGISTRY_IMAGE" . - docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE" - docker push "$CI_REGISTRY_IMAGE"
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
docker-build: docker-build:
# Official docker image. # Official docker image.
...@@ -25,5 +24,4 @@ docker-build: ...@@ -25,5 +24,4 @@ docker-build:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -24,8 +24,9 @@ review: ...@@ -24,8 +24,9 @@ review:
- tags - tags
kubernetes: active kubernetes: active
except: except:
refs:
- master
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $REVIEW_DISABLED - $REVIEW_DISABLED
stop_review: stop_review:
...@@ -47,8 +48,9 @@ stop_review: ...@@ -47,8 +48,9 @@ stop_review:
- tags - tags
kubernetes: active kubernetes: active
except: except:
refs:
- master
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $REVIEW_DISABLED - $REVIEW_DISABLED
# Staging deploys are disabled by default since # Staging deploys are disabled by default since
...@@ -71,9 +73,10 @@ staging: ...@@ -71,9 +73,10 @@ staging:
name: staging name: staging
url: http://$CI_PROJECT_PATH_SLUG-staging.$KUBE_INGRESS_BASE_DOMAIN url: http://$CI_PROJECT_PATH_SLUG-staging.$KUBE_INGRESS_BASE_DOMAIN
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $STAGING_ENABLED - $STAGING_ENABLED
# Canaries are disabled by default, but if you want them, # Canaries are disabled by default, but if you want them,
...@@ -95,9 +98,10 @@ canary: ...@@ -95,9 +98,10 @@ canary:
url: http://$CI_PROJECT_PATH_SLUG.$KUBE_INGRESS_BASE_DOMAIN url: http://$CI_PROJECT_PATH_SLUG.$KUBE_INGRESS_BASE_DOMAIN
when: manual when: manual
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $CANARY_ENABLED - $CANARY_ENABLED
.production: &production_template .production: &production_template
...@@ -122,9 +126,9 @@ canary: ...@@ -122,9 +126,9 @@ canary:
production: production:
<<: *production_template <<: *production_template
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
except: except:
variables: variables:
- $STAGING_ENABLED - $STAGING_ENABLED
...@@ -137,9 +141,10 @@ production_manual: ...@@ -137,9 +141,10 @@ production_manual:
when: manual when: manual
allow_failure: false allow_failure: false
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $STAGING_ENABLED - $STAGING_ENABLED
- $CANARY_ENABLED - $CANARY_ENABLED
except: except:
...@@ -147,7 +152,7 @@ production_manual: ...@@ -147,7 +152,7 @@ production_manual:
- $INCREMENTAL_ROLLOUT_ENABLED - $INCREMENTAL_ROLLOUT_ENABLED
- $INCREMENTAL_ROLLOUT_MODE - $INCREMENTAL_ROLLOUT_MODE
# This job implements incremental rollout for every push to the default branch. # This job implements incremental rollout on for every push to `master`.
.rollout: &rollout_template .rollout: &rollout_template
extends: .auto-deploy extends: .auto-deploy
...@@ -173,9 +178,10 @@ production_manual: ...@@ -173,9 +178,10 @@ production_manual:
when: manual when: manual
# This selectors are backward compatible mode with $INCREMENTAL_ROLLOUT_ENABLED (before 11.4) # This selectors are backward compatible mode with $INCREMENTAL_ROLLOUT_ENABLED (before 11.4)
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $INCREMENTAL_ROLLOUT_MODE == "manual" - $INCREMENTAL_ROLLOUT_MODE == "manual"
- $INCREMENTAL_ROLLOUT_ENABLED - $INCREMENTAL_ROLLOUT_ENABLED
except: except:
...@@ -187,9 +193,10 @@ production_manual: ...@@ -187,9 +193,10 @@ production_manual:
when: delayed when: delayed
start_in: 5 minutes start_in: 5 minutes
only: only:
refs:
- master
kubernetes: active kubernetes: active
variables: variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
- $INCREMENTAL_ROLLOUT_MODE == "timed" - $INCREMENTAL_ROLLOUT_MODE == "timed"
timed rollout 10%: timed rollout 10%:
......
...@@ -64,8 +64,7 @@ pages: ...@@ -64,8 +64,7 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
# WARNING: This template is using the `julia` images from [Docker # WARNING: This template is using the `julia` images from [Docker
# Hub][3]. One can use custom Julia images and/or the official ones found # Hub][3]. One can use custom Julia images and/or the official ones found
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# This template will build and test your projects # This template will build and test your projects
# * Caches downloaded dependencies and plugins between invocation. # * Caches downloaded dependencies and plugins between invocation.
# * Verify but don't deploy merge requests. # * Verify but don't deploy merge requests.
# * Deploy built artifacts from the default branch only. # * Deploy built artifacts from master branch only.
variables: variables:
# This will suppress any download for dependencies and plugins or upload messages which would clutter the console log. # This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
...@@ -33,8 +33,7 @@ cache: ...@@ -33,8 +33,7 @@ cache:
script: script:
- 'mvn $MAVEN_CLI_OPTS verify' - 'mvn $MAVEN_CLI_OPTS verify'
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
# Verify merge requests using JDK8 # Verify merge requests using JDK8
verify:jdk8: verify:jdk8:
...@@ -43,7 +42,7 @@ verify:jdk8: ...@@ -43,7 +42,7 @@ verify:jdk8:
# To deploy packages from CI, create a ci_settings.xml file # To deploy packages from CI, create a ci_settings.xml file
# For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/project/packages/maven_repository.html#creating-maven-packages-with-gitlab-cicd for more details. # For deploying packages to GitLab's Maven Repository: See https://docs.gitlab.com/ee/user/project/packages/maven_repository.html#creating-maven-packages-with-gitlab-cicd for more details.
# Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate. # Please note: The GitLab Maven Repository is currently only available in GitLab Premium / Ultimate.
# For the default branch run `mvn deploy` automatically. # For `master` branch run `mvn deploy` automatically.
deploy:jdk8: deploy:jdk8:
stage: deploy stage: deploy
script: script:
...@@ -52,5 +51,4 @@ deploy:jdk8: ...@@ -52,5 +51,4 @@ deploy:jdk8:
fi fi
- 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml' - 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -25,8 +25,7 @@ before_script: ...@@ -25,8 +25,7 @@ before_script:
release: release:
stage: deploy stage: deploy
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
artifacts: artifacts:
paths: paths:
- build/release/MyProject.exe - build/release/MyProject.exe
......
...@@ -49,8 +49,7 @@ review: ...@@ -49,8 +49,7 @@ review:
only: only:
- branches - branches
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
stop-review: stop-review:
<<: *deploy <<: *deploy
...@@ -67,8 +66,7 @@ stop-review: ...@@ -67,8 +66,7 @@ stop-review:
only: only:
- branches - branches
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
staging: staging:
<<: *deploy <<: *deploy
...@@ -80,8 +78,7 @@ staging: ...@@ -80,8 +78,7 @@ staging:
name: staging name: staging
url: http://$CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN url: http://$CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
production: production:
<<: *deploy <<: *deploy
...@@ -94,5 +91,4 @@ production: ...@@ -94,5 +91,4 @@ production:
name: production name: production
url: http://$CI_PROJECT_NAME.$OPENSHIFT_DOMAIN url: http://$CI_PROJECT_NAME.$OPENSHIFT_DOMAIN
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -25,5 +25,4 @@ build: ...@@ -25,5 +25,4 @@ build:
- find . -maxdepth 1 -name '*.json' -print0 | xargs -t0n1 packer build - find . -maxdepth 1 -name '*.json' -print0 | xargs -t0n1 packer build
when: manual when: manual
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -12,5 +12,4 @@ pages: ...@@ -12,5 +12,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -10,5 +10,4 @@ pages: ...@@ -10,5 +10,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -14,5 +14,4 @@ pages: ...@@ -14,5 +14,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -9,5 +9,4 @@ pages: ...@@ -9,5 +9,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -12,5 +12,4 @@ pages: ...@@ -12,5 +12,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -14,5 +14,4 @@ pages: ...@@ -14,5 +14,4 @@ pages:
- node_modules - node_modules
key: project key: project
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -8,12 +8,10 @@ pages: ...@@ -8,12 +8,10 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
test: test:
script: script:
- hugo - hugo
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -11,8 +11,7 @@ test: ...@@ -11,8 +11,7 @@ test:
- pip install hyde - pip install hyde
- hyde gen - hyde gen
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
pages: pages:
stage: deploy stage: deploy
...@@ -23,5 +22,4 @@ pages: ...@@ -23,5 +22,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -17,8 +17,7 @@ test: ...@@ -17,8 +17,7 @@ test:
paths: paths:
- test - test
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
pages: pages:
stage: deploy stage: deploy
...@@ -28,5 +27,4 @@ pages: ...@@ -28,5 +27,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -34,5 +34,4 @@ pages: ...@@ -34,5 +34,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -9,5 +9,4 @@ pages: ...@@ -9,5 +9,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -13,5 +13,4 @@ pages: ...@@ -13,5 +13,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -12,8 +12,7 @@ test: ...@@ -12,8 +12,7 @@ test:
- bundle install --path vendor - bundle install --path vendor
- bundle exec middleman build - bundle exec middleman build
except: except:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
pages: pages:
script: script:
...@@ -25,5 +24,4 @@ pages: ...@@ -25,5 +24,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -9,5 +9,4 @@ pages: ...@@ -9,5 +9,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -12,5 +12,4 @@ pages: ...@@ -12,5 +12,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -26,5 +26,4 @@ pages: ...@@ -26,5 +26,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -48,5 +48,4 @@ pages: ...@@ -48,5 +48,4 @@ pages:
paths: paths:
- public - public
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
...@@ -22,8 +22,7 @@ archive_project: ...@@ -22,8 +22,7 @@ archive_project:
- xcodebuild clean archive -archivePath build/ProjectName -scheme SchemeName - xcodebuild clean archive -archivePath build/ProjectName -scheme SchemeName
- xcodebuild -exportArchive -exportFormat ipa -archivePath "build/ProjectName.xcarchive" -exportPath "build/ProjectName.ipa" -exportProvisioningProfile "ProvisioningProfileName" - xcodebuild -exportArchive -exportFormat ipa -archivePath "build/ProjectName.xcarchive" -exportPath "build/ProjectName.ipa" -exportProvisioningProfile "ProvisioningProfileName"
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
artifacts: artifacts:
paths: paths:
- build/ProjectName.ipa - build/ProjectName.ipa
......
...@@ -53,5 +53,4 @@ apply: ...@@ -53,5 +53,4 @@ apply:
- plan - plan
when: manual when: manual
only: only:
variables: - master
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment