Skip to content

Commit

Permalink
[#41] try fix CI/CD pipeline with proper tags
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondng76 committed Jan 17, 2022
1 parent a842cbc commit a0b8eaf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ run_slow_unit_tests:
generate_demo_api_yaml:
stage: pre
tags:
- on-prem
- dind
image: alpine:latest
script:
- apk add -U jsonnet
Expand All @@ -58,7 +58,7 @@ generate_demo_api_yaml:
generate_dev_demo_api_yaml:
stage: pre
tags:
- on-prem
- dind
image: alpine:latest
script:
- apk add -U jsonnet
Expand Down
5 changes: 5 additions & 0 deletions jsonnet/demo-api.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ local build_and_push_staging(module_name, image_name) = {
stage: "build_and_push_staging",
tags: [
"on-prem",
"dind",
],
when: "manual",
script: [
Expand All @@ -20,6 +21,7 @@ local build_and_push_docs_staging() = {
stage: "build_and_push_staging",
tags: [
"on-prem",
"dind",
],
when: "manual",
script: [
Expand Down Expand Up @@ -50,6 +52,7 @@ local retag_and_push_production(module_name, image_name) = {
stage: "retag_and_push_production",
tags: [
"on-prem",
"dind",
],
only: {
refs: ["main"]
Expand All @@ -73,6 +76,7 @@ local restart_kubernetes_staging(module_name, deployment_name) = {
stage: "restart_kubernetes_staging",
tags: [
"on-prem",
"dind",
],
when: "manual",
needs: ["%s_build_and_push_staging" % module_name],
Expand All @@ -88,6 +92,7 @@ local restart_kubernetes_production(module_name, deployment_name) = {
stage: "restart_kubernetes_production",
tags: [
"on-prem",
"dind",
],
only: {
refs: ["main"]
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/dev-demo-api.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ local build_and_push_staging(module_name, image_name) = {
stage: "build_and_push_staging",
tags: [
"on-prem",
"dind",
],
when: "manual",
script: [
Expand All @@ -21,6 +22,7 @@ local restart_kubernetes_staging(module_name, deployment_name) = {
stage: "restart_kubernetes_staging",
tags: [
"on-prem",
"dind",
],
when: "manual",
needs: ["%s_build_and_push_staging" % module_name],
Expand Down

0 comments on commit a0b8eaf

Please sign in to comment.