-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from andock-ci/develop
Develop
- Loading branch information
Showing
8 changed files
with
108 additions
and
47 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# Build configuration | ||
@TODO | ||
The build steps are configured in | ||
* `.andock-ci/hooks/build_tasks.yml` | ||
|
||
### Sample build_tasks.yml | ||
```yaml | ||
- name: Composer | ||
command: "composer install" | ||
args: | ||
chdir: "{{ checkout_path }}" | ||
- name: npm install | ||
command: "npm install" | ||
args: | ||
chdir: "{{ checkout_path }}/docroot/themes/custom/theme" | ||
- name: Compile scss | ||
command: "npm run compile" | ||
args: | ||
chdir: "{{ checkout_path }}/docroot/themes/custom/theme" | ||
|
||
``` | ||
### .gitignore | ||
To commit builded artifacts the folders must be removed from .gitignore. | ||
To easily manage this you can use ansible file blocks. | ||
``` | ||
#### BEGIN REMOVE ANDOCK-CI ### | ||
Folders | ||
#### END REMOVE ANDOCK-CI ### | ||
``` | ||
#### Sample: | ||
``` | ||
#### BEGIN REMOVE ANDOCK-CI ### | ||
docroot/core | ||
docroot/modules/contrib | ||
docroot/themes/contrib | ||
docroot/profiles/contrib | ||
vendor | ||
#### END REMOVE ANDOCK-CI ### | ||
``` |
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
# Configuration overview | ||
@TODO | ||
# Configuration | ||
The following configuration files are added to a project by running `fin acp generate:config` | ||
|
||
| File name | Description | | ||
|----------------------------|:------------| | ||
| `andock-ci.yml` | Main configuration file. | ||
| `hooks/build_tasks.yml` | Build hook fired while `fin acp build`. | | ||
| `hooks/init_tasks.yml` | Build hook fired while `fin acp fin init` | | ||
| `hooks/update_tasks.yml` | Build hook fired while `fin acp fin update`| | ||
| `hooks/test_tasks.yml` | Build hook fired while `fin acp fin test`| |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# What is andock. | ||
andock is a set of ansible roles to manage the complete build and deploy life cycle. and a command line tool to manage these ansible roles. | ||
# Concept overview. | ||
andock is a set of ansible roles to manage the complete build and deploy life cycle and a command line tool to manage these ansible roles. | ||
|
||
## Life cycle | ||
* build | ||
* unit tests | ||
## Pipeline steps: | ||
* build (unit tests, deploy to deployment branch) | ||
* Environment creation/updates | ||
* QA tests | ||
* Environment removal | ||
|
||
## Ansible roles | ||
* server | ||
* build | ||
* fin | ||
* fin | ||
|
||
### Role: server | ||
Manages docksal installations and updates. | ||
|
||
### Role: build | ||
Build project and deploy the artifact to a target repository. Right now only git repositories are supported but in future other deploy strategy should supported. | ||
This runs typically on CI server. [See configuration](build.md) | ||
|
||
### Role: fin | ||
Checks out the deployed artifact and run fin up. [See configuration](fin.md) |
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