https://github.com/zoltan-nz/playing-with-concourse
Playing with Concourse CI
https://github.com/zoltan-nz/playing-with-concourse
Last synced: 4 months ago
JSON representation
Playing with Concourse CI
- Host: GitHub
- URL: https://github.com/zoltan-nz/playing-with-concourse
- Owner: zoltan-nz
- Created: 2019-03-28T00:26:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T23:40:03.000Z (over 6 years ago)
- Last Synced: 2025-03-30T13:03:43.225Z (7 months ago)
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup a pipeline with Concourse CI
- [Concourse CI](https://concourse-ci.org/)
- [Concourse Tutorial](https://concoursetutorial.com/)Run the Concourse CI
```bash
docker-compose up
```Login
```bash
fly --target tutorial login --concourse-url http://localhost:8080 -u admin -p admin
fly --target tutorial sync
```Run task
```bash
fly -t tutorial execute -c tasks/hello-world.yml
```Task without input
```bash
fly --target tutorial execute --config tasks/no-inputs.yml
```Task with input
```bash
fly --target tutorial execute --config tasks/inputs-required.yml --input some-input=.
```If the input name and the actual folder name are the same, the actual folder content will be copied inside the container.
## Pipeline
```bash
fly --target tutorial set-pipeline --config tasks/basic-pipeline.yml --pipeline hello-world
fly --target tutorial unpause-pipeline --pipeline hello-world
fly --target tutorial unpause-job --job hello-world/job-hello-world
```### Git resource
```yaml
resources:
- name: resource-tutorial
type: git
source:
uri: https://github.com/starkandwayne/concourse-tutorial.git
branch: developjobs:
- name: job-hello-world
public: true
plan:
- get: resource-tutorial
- task: hello-world
file: resource-tutorial/tutorials/basic/task-hello-world/task_hello_world.yml
```### Watch
```bash
fly -t tutorial builds
fly -t tutorial watch -j hello-world/job-hello-world
```Trigger a job and watch:
```
fly -t tutorial trigger-job -j hello-world/job-hello-world -w
```