Skip to content

Commit

Permalink
[#41] try adding on-prem to jsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondng76 committed Jan 17, 2022
1 parent 905ab95 commit dfb49f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jsonnet/demo-api.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local build_and_push_staging(module_name, image_name) = {
image: "registry.aisingapore.net/sg-nlp/sg-nlp-runner:latest",
stage: "build_and_push_staging",
tags: "on-prem",
when: "manual",
script: [
"echo 'Logging in to AISG Docker Registry...'",
Expand All @@ -15,6 +16,7 @@ local build_and_push_staging(module_name, image_name) = {
local build_and_push_docs_staging() = {
image: "python:3.8.11-slim",
stage: "build_and_push_staging",
tags: "on-prem",
when: "manual",
script: [
"echo 'Building Sphinx docs'",
Expand Down Expand Up @@ -42,6 +44,7 @@ local build_and_push_docs_staging() = {
local retag_and_push_production(module_name, image_name) = {
image: "registry.aisingapore.net/sg-nlp/sg-nlp-runner:latest",
stage: "retag_and_push_production",
tags: "on-prem",
only: {
refs: ["main"]
},
Expand All @@ -62,6 +65,7 @@ local retag_and_push_production(module_name, image_name) = {
local restart_kubernetes_staging(module_name, deployment_name) = {
image: "registry.aisingapore.net/sea-core-nlp/seacorenlp-runner:latest",
stage: "restart_kubernetes_staging",
tags: "on-prem",
when: "manual",
needs: ["%s_build_and_push_staging" % module_name],
script: [
Expand All @@ -74,6 +78,7 @@ local restart_kubernetes_staging(module_name, deployment_name) = {
local restart_kubernetes_production(module_name, deployment_name) = {
image: "registry.aisingapore.net/sea-core-nlp/seacorenlp-runner:latest",
stage: "restart_kubernetes_production",
tags: "on-prem",
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
@@ -1,6 +1,7 @@
local build_and_push_staging(module_name, image_name) = {
image: "registry.aisingapore.net/sg-nlp/sg-nlp-runner:latest",
stage: "build_and_push_staging",
tags: "on-prem",
when: "manual",
script: [
"echo 'Logging in to AISG Docker Registry...'",
Expand All @@ -16,6 +17,7 @@ local build_and_push_staging(module_name, image_name) = {
local restart_kubernetes_staging(module_name, deployment_name) = {
image: "registry.aisingapore.net/sea-core-nlp/seacorenlp-runner:latest",
stage: "restart_kubernetes_staging",
tags: "on-prem",
when: "manual",
needs: ["%s_build_and_push_staging" % module_name],
script: [
Expand Down

0 comments on commit dfb49f0

Please sign in to comment.