Last active
April 23, 2020 10:35
-
-
Save makotom/0c381899e9cc86ee79e56086dc44b247 to your computer and use it in GitHub Desktop.
Extract of https://github.com/circle-makotom/circle-s3-deploy-demo/blob/master/.circleci/config.yml and its counterpart JSON
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
{ | |
"jobs": { | |
"build": { | |
"docker": [ | |
{ | |
"image": "archlinux:latest" | |
} | |
], | |
"steps": [ | |
{ | |
"run": { | |
"command": "echo '\u003c!doctype html\u003e\u003chtml lang=\"en\"\u003e\u003cmeta charset=\"UTF-8\"\u003e\u003ctitle\u003eHello world!\u003c/title\u003eHello!' \u003e index.html", | |
"name": "Building the app" | |
} | |
}, | |
{ | |
"store_artifacts": { | |
"path": "index.html" | |
} | |
}, | |
{ | |
"persist_to_workspace": { | |
"paths": [ | |
"./" | |
], | |
"root": "./" | |
} | |
} | |
] | |
}, | |
"validate": { | |
"docker": [ | |
{ | |
"image": "validator/validator:latest" | |
} | |
], | |
"steps": [ | |
{ | |
"run": "apt update" | |
}, | |
{ | |
"run": "apt -y install ca-certificates" | |
}, | |
{ | |
"attach_workspace": { | |
"at": "./" | |
} | |
}, | |
{ | |
"run": "/vnu-runtime-image/bin/vnu index.html" | |
} | |
] | |
} | |
}, | |
"version": 2, | |
"workflows": { | |
"build-test-deploy": { | |
"jobs": [ | |
"build", | |
{ | |
"validate": { | |
"requires": [ | |
"build" | |
] | |
} | |
} | |
] | |
}, | |
"version": 2 | |
} | |
} |
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: archlinux:latest | |
steps: | |
- run: | |
name: Building the app | |
command: echo '<!doctype html><html lang="en"><meta charset="UTF-8"><title>Hello world!</title>Hello!' > index.html | |
- store_artifacts: | |
path: index.html | |
- persist_to_workspace: | |
root: ./ | |
paths: | |
- ./ | |
validate: | |
docker: | |
- image: validator/validator:latest | |
steps: | |
- run: apt update | |
- run: apt -y install ca-certificates | |
- attach_workspace: | |
at: ./ | |
- run: /vnu-runtime-image/bin/vnu index.html | |
workflows: | |
version: 2 | |
build-test-deploy: | |
jobs: | |
- build | |
- validate: | |
requires: | |
- build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment