forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 46-override-notification-settings
- Loading branch information
Showing
60 changed files
with
4,981 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
type: container | ||
version: 1 | ||
name: git-checkout | ||
description: Checks out a source repository to /src | ||
resources: | ||
mem_mib: 500 | ||
cpu_cores: 0.1 | ||
image: indiehosters/git | ||
command: ["bash", "-c"] | ||
args: ["git clone %%inputs.parameters.REPO%% /src && cd /src && git checkout %%inputs.parameters.COMMIT%%"] | ||
inputs: | ||
parameters: | ||
COMMIT: | ||
default: "%%session.commit%%" | ||
REPO: | ||
default: "%%session.repo%%" | ||
outputs: | ||
artifacts: | ||
CODE: | ||
path: /src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
--- | ||
type: workflow | ||
version: 1 | ||
name: Argo Lite Release | ||
|
||
inputs: | ||
parameters: | ||
COMMIT: | ||
default: "%%session.commit%%" | ||
REPO: | ||
default: "%%session.repo%%" | ||
IMAGE_URL: | ||
default: "argoproj/argo-lite:staging" | ||
REG_USER: | ||
default: "%%[email protected]%%" | ||
REG_PASSWORD: | ||
default: "%%[email protected]%%" | ||
|
||
steps: | ||
- build: | ||
template: Argo Lite CI | ||
- publish: | ||
template: lite-publish | ||
arguments: | ||
artifacts.API: "%%steps.build.outputs.artifacts.API%%" | ||
artifacts.UI: "%%steps.build.outputs.artifacts.UI%%" | ||
parameters.IMAGE_URL: "%%inputs.parameters.IMAGE_URL%%" | ||
parameters.REG_USER: "%%inputs.parameters.REG_USER%%" | ||
parameters.REG_PASSWORD: "%%inputs.parameters.REG_PASSWORD%%" | ||
|
||
--- | ||
type: workflow | ||
version: 1 | ||
name: Argo Lite CI | ||
|
||
inputs: | ||
parameters: | ||
COMMIT: | ||
default: "%%session.commit%%" | ||
REPO: | ||
default: "%%session.repo%%" | ||
|
||
steps: | ||
- checkout: | ||
template: git-checkout | ||
- build-api: | ||
template: lite-build-api | ||
arguments: | ||
artifacts.CODE: "%%steps.checkout.outputs.artifacts.CODE%%" | ||
build-ui: | ||
template: gui-build | ||
arguments: | ||
artifacts.CODE: "%%steps.checkout.outputs.artifacts.CODE%%" | ||
|
||
outputs: | ||
artifacts: | ||
UI: | ||
from: "%%steps.build-ui.outputs.artifacts.CODE%%" | ||
API: | ||
from: "%%steps.build-api.outputs.artifacts.CODE%%" | ||
|
||
|
||
--- | ||
type: container | ||
version: 1 | ||
name: lite-build-api | ||
|
||
inputs: | ||
artifacts: | ||
CODE: | ||
path: /src | ||
|
||
outputs: | ||
artifacts: | ||
CODE: | ||
path: /src | ||
|
||
image: node:6.3.1 | ||
resources: | ||
mem_mib: 1024 | ||
cpu_cores: 0.1 | ||
command: ["sh", "-c"] | ||
args: [cd /src/lite && npm install -g yarn && yarn install && npm run build] | ||
|
||
--- | ||
type: container | ||
version: 1 | ||
name: lite-publish | ||
|
||
inputs: | ||
parameters: | ||
IMAGE_URL: | ||
REG_USER: | ||
REG_PASSWORD: | ||
artifacts: | ||
UI: | ||
path: /ui | ||
API: | ||
path: /api | ||
|
||
image: docker | ||
resources: | ||
mem_mib: 512 | ||
cpu_cores: 0.1 | ||
command: ["sh", "-c"] | ||
args: [ | ||
docker login -u %%inputs.parameters.REG_USER%% -p %%inputs.parameters.REG_PASSWORD%% $REGISTRY && | ||
cd /api/lite && cp -r /ui/saas/axops/src/ui/dist/ ./dist/ui && docker build -t %%inputs.parameters.IMAGE_URL%% . && docker push %%inputs.parameters.IMAGE_URL%% | ||
] | ||
annotations: | ||
ax_ea_docker_enable: '{"graph-storage-size": "10Gi", "cpu_cores":0.1, "mem_mib":200}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.