Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gitlab-ci.yml #4

Merged
merged 5 commits into from Jun 7, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Add .gitlab-ci.yml

  • Loading branch information...
jpetto committed May 28, 2019
commit 1c2b685335165d818bdb64782557b76c14a25640
@@ -0,0 +1,92 @@
deploy frankfurt dev:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/frankfurt.kubeconfig
tags:
- aws
- frankfurt
- meao
only:
- master
- frankfurt
script:
- kubectl_1.11 apply -f frankfurt/snippets-dev
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f frankfurt/snippets-dev/deploy.yaml -w

This comment has been minimized.

Copy link
@jgmize

jgmize Jun 4, 2019

Member

After the push to dev triggered https://gitlab.com/mozmeao/snippets-config/-/jobs/225175689 I see that we need to modify this to call out specific deployments instead of just passing in the list. This approach worked with nucleus because there was only a single deployment in the file.


deploy oregon-b dev:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/oregon-b.kubeconfig
tags:
- aws
- meao
only:
- master
- oregon-b
script:
- kubectl_1.11 apply -f oregon-b/snippets-dev
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f oregon-b/snippets-dev/deploy.yaml -w

deploy frankfurt stage:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/frankfurt.kubeconfig
tags:
- aws
- frankfurt
- meao
only:
- master
- frankfurt
- stage
script:
- kubectl_1.11 apply -f frankfurt/snippets-stage
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f frankfurt/snippets-stage/deploy.yaml -w

deploy oregon-b stage:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/oregon-b.kubeconfig
tags:
- aws
- meao
only:
- master
- oregon-b
- stage
script:
- kubectl_1.11 apply -f oregon-b/snippets-stage
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f oregon-b/snippets-stage/deploy.yaml -w

deploy frankfurt prod:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/frankfurt.kubeconfig
tags:
- aws
- frankfurt
- meao
only:
- master
- frankfurt
- prod
- frankfurt-prod
script:
- kubectl_1.11 apply -f frankfurt/snippets-prod
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f frankfurt/snippets-prod/deploy.yaml -w

deploy oregon-b prod:
variables:
KUBECONFIG: /home/gitlab-runner/.kube/oregon-b.kubeconfig
tags:
- aws
- meao
only:
- master
- oregon-b
- prod
- oregon-b-prod
script:
- kubectl_1.11 apply -f oregon-b/snippets-prod
# --timeout requires kubectl 1.12+
- kubectl_1.11 rollout status -f oregon-b/snippets-prod/deploy.yaml -w
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.