Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/docksal/ci-agent

CI agent Docker image for Docksal Sandboxes
https://github.com/docksal/ci-agent

Moved CI_SSH_KEY to optional vars in docs

Since rsync is used by default to sync to codebase to the server, the CI_SSH_KEY is no longer a ...

160f5f161a31bda822dd579dbac5a8b335c194da authored about 6 years ago by Leonid Makarov <[email protected]>
Quotes and curly brackets around variables in built-init

66fc2ad6975e255887afde6a22ad946e414bdc97 authored about 6 years ago by Leonid Makarov <[email protected]>
Mute cd command in build-init

c91fc02dcb2dae271759ed907c2c82ec526bb83a authored about 6 years ago by Leonid Makarov <[email protected]>
Default to using rsync for codebase initialization on the server

62ff01852ad282b9944459292605a1d9b50c9adf authored about 6 years ago by Leonid Makarov <[email protected]>
Use a double hyphen to separate branch from project in the domain name

Note: thanks to Netlify for this simple and brilliant idea :)

9372cbc3c83ba2ad30ac2f7231cc5f6af952ec0c authored about 6 years ago by Leonid Makarov <[email protected]>
Drop variables with "null" values in build-env

This allows, at the project level, unsetting build variables set at the org level

5a99da485dbb198166b67f23ec92b84c2e7ba415 authored about 6 years ago by Leonid Makarov <[email protected]>
Enabled ssh-agent forwarding

b9e96325345ac7545acb8647c9c76333cff60cb4 authored about 6 years ago by Leonid Makarov <[email protected]>
Fail build if any of the steps in sandbox-init fail

edbcef6652e55afb29366c1d9c4fe27e90cd739a authored about 6 years ago by Leonid Makarov <[email protected]>
Add tests for git settings and ssh keys (#32)

* Add git and ssh keys tests
* Execute docksal installation using bash

7196199f56d5c3fba87555fe1dc5885f6bd67e82 authored about 6 years ago by sergey-zabolotny <[email protected]>
Updated docs on configuring SSH keys

[ci skip]

e21b3c66332ec42bd75fa06194e818aa9fd09422 authored about 6 years ago by Leonid Makarov <[email protected]>
Updated defaults for the sandbox user and builds directory

User: build-agent
Builds directory: /home/build-agent/builds

These can be overridden via DOCKSA...

bcd9a3d9c08509e013634b8c791bba5976eccd9d authored about 6 years ago by Leonid Makarov <[email protected]>
Get rid of the set settings in build-env

Note: instead of "set -e" use "exit 1" where necessary

cbd35d790166651ca6e4caf20d121973c0348cdd authored about 6 years ago by Leonid Makarov <[email protected]>
Added a trap message on errors

705a819aff6a9339c485f7af2b7d415d6a732d91 authored about 6 years ago by Leonid Makarov <[email protected]>
Fix ssh_init non-zero exit code

2957695da8e21c9cf65b471d453671fcd047b52d authored about 6 years ago by Leonid Makarov <[email protected]>
Added make

7498763c7d123f63708225f0caa6cb2ce2d6f5e8 authored about 6 years ago by Leonid Makarov <[email protected]>
Added BUILD_ID variable

Used as the unique identifier for a build

8b66182ce8152268286931e2f52168ad22b374e9 authored about 6 years ago by Leonid Makarov <[email protected]>
Renamed BITBUCKETCI to BITBUCKET_CI

This variable is used internally and is set to "true" when a build is running on Bitbucket Pipel...

b62e55a4589942707e18d9d5d77b10fb0c5d6dbf authored about 6 years ago by Leonid Makarov <[email protected]>
Force using the key set via CI_SSH_KEY for all hosts. Fixes #26

f15c672980c7219a4d7dea227da128d070d6c42a authored about 6 years ago by Leonid Makarov <[email protected]>
Improved ssh_init

Only write keys if SSH key variables are not empty

8832ed5224781dff62f459369583e36ad968a8c6 authored about 6 years ago by Leonid Makarov <[email protected]>
Fix typo in git_env

c2b478cf12b6958c9500e2620d6c4f00db4956fe authored about 6 years ago by Leonid Makarov <[email protected]>
Ensure ssh keys permissions are correct

01b05c885ced620bc86bcd81d3336df612dff912 authored about 6 years ago by Leonid Makarov <[email protected]>
Refactored build-env

Removed sandbox_server_env (move into build_env)

469a11b59274ca088266e2f34ce9b50068d4deaf authored about 6 years ago by Leonid Makarov <[email protected]>
Improved git_env to only write config when necessary

2e6cb1c1f9691540577bb06e4549493511f96af1 authored about 6 years ago by Leonid Makarov <[email protected]>
Updated CircleCI basic example

Doing "echo 'source build-env' >> $BASH_ENV" as the first step is important for CircleCI builds....

6e1050e4156604a8e882318c47fbde61366d6f79 authored about 6 years ago by Leonid Makarov <[email protected]>
Reset "set" settings at the end of build-env

Since build-env is sourced in all build steps, the "set -e" setting was propagated everywhere ca...

bcead245bb5c83fd56894d8a45200f3e432a3d87 authored about 6 years ago by Leonid Makarov <[email protected]>
Added a test for phpcs

d8b0e30c5e97acf3ec46cc63b229a5fd68968aec authored over 6 years ago by Leonid Makarov <[email protected]>
Properly fail image builds on errors in RUN executions

3afa0d67a738c1526c557a2e37fecd4b5cc52894 authored over 6 years ago by Leonid Makarov <[email protected]>
Switch to Alpine 3.8

00bfa66c00eca80d866e707cdb32c3a81ef4fd8c authored over 6 years ago by Leonid Makarov <[email protected]>
Added REMOTE_CODEBASE_METHOD variable

6917bcb23230c727177d0aba124ba5e260b062b0 authored over 6 years ago by Leonid Makarov <[email protected]>
rsync sources from agent to server

This eliminates git as a host level dependency on the sandbox server

7b3c7e63feb7ea1636e88e1d42a2bef4b4219d7f authored over 6 years ago by Leonid Makarov <[email protected]>
Added BUILD_DIR build variable

0421363399182d94b8a022e0d12780f7b74be607 authored over 6 years ago by Leonid Makarov <[email protected]>
Merge pull request #28 from sergey-zabolotny/develop

Use a faster way to calculate GIT_PR_NUMBER value

76839eb354c84061ee407e05e09dcf86a7f0e1a3 authored over 6 years ago by Leonid Makarov <[email protected]>
Use a faster way to calculate GIT_PR_NUMBER value

8cd8111a3d92ba1965c77d78120036d29d410d15 authored over 6 years ago by Sergey Zabolotny <[email protected]>
Use https for sandbox URLs in build-notify

99e3ab4c7bdfdf64b6ca5174b5e877825403fb27 authored over 6 years ago by Leonid Makarov <[email protected]>
Update docker and docker-compose versions

- docker 18.06.0
- docker-compose 1.21.0
- Install docker-compose via pip, since the old way (in...

0f627d2e48d94ac7a13bb12625f706bd3fdc1119 authored over 6 years ago by Leonid Makarov <[email protected]>
Use flat sub-domains for sandboxes

b68558293df873f53330fc0b6c9a0eb0807e8975 authored over 6 years ago by Leonid Makarov <[email protected]>
Added DOMAIN_MODE option

"DOMAIN_MODE=multi" (default) => branch.project.example.com
"DOMAIN_MODE=flat" => branch-project...

12a6a512ccfd5def81c2a55c86544b0d6c5025e7 authored over 6 years ago by Leonid Makarov <[email protected]>
Fix a regression with SECRET variables. Fixes #27

Make sure builds don't fail if there are not SECRET_ variables

d48e9221e354f4eb79253848fa27041b37f6e56d authored over 6 years ago by Leonid Makarov <[email protected]>
Make sure there are no uppercase letters in domain names (Fixes #25)

- safe_string - generates a domain safe string
- Apply this to REPO_NAME_SAFE and BRANCH_NAME_SA...

2d0ccca18fda60d3ef92bfedd679b4eb830b68cb authored over 6 years ago by Leonid Makarov <[email protected]>
Use a stable image tag in docs and examples

93d8f84be68e2972a6c674557f30fcf9c8b22007 authored over 6 years ago by Leonid Makarov <[email protected]>
Updated docs and examples

b7385ff870adad22b8afb4349bff14bf61ce7b0e authored over 6 years ago by Leonid Makarov <[email protected]>
Fix condition in build-env

6befd4e0be742d936c3ca28ad4dd097fef86851d authored over 6 years ago by Leonid Makarov <[email protected]>
Improve messaging

Silenced build-env unless in DEBUG mode

1074762420e8e43b7b68c675398c70333181a3e5 authored over 6 years ago by Leonid Makarov <[email protected]>
Silence cleanup operations in build-init

c24f6a672974e2003dc86e73bceba1b40e489dfb authored over 6 years ago by Leonid Makarov <[email protected]>
sandbox-init

A shortcut command for most users.
Power users can use individual commands directly to modify th...

1cee289b5408022702554c9fdce607ab52f588eb authored over 6 years ago by Leonid Makarov <[email protected]>
Update README.md

610092011cbc992d40161dcaf90b3edff6524e34 authored over 6 years ago by Oleksii Chekulaiev <[email protected]>
Update README.md

Mention REMOTE_BUILD_DIR

2fb3c8e175aac4593b1bff2a92715e530a6fae4e authored over 6 years ago by Oleksii Chekulaiev <[email protected]>
Silence curl in build-notify

For debug mode use `DEBUG=1 build-notify`

f7c939717ece6a9c237d2899c409210c4f492f1c authored almost 7 years ago by Leonid Makarov <[email protected]>
Pass build secrets to sandbox

A "secret" is any environment variable that starts with "SECRET_"

a792d2f120fa68098cce0694d5a4225a417c3cc3 authored almost 7 years ago by Leonid Makarov <[email protected]>
build-exec command

build-exec <command> => ssh docker-host "cd $REMOTE_BUILD_DIR && (<command>)"

2bcc010d1d235abd04d425c39e87b18a7bf78fee authored almost 7 years ago by Leonid Makarov <[email protected]>
README updates

71128e9c9fd4d1e16180ca8ea4d21f2a689ba021 authored almost 7 years ago by Leonid Makarov <[email protected]>
Version bumps

- Composer v1.6.3
- Drush v8.1.16
- Drupal Console v1.7.0
- Wordpress CLI v 1.5.0

2e011870abcde5b301ece875c2e2778d940e4276 authored almost 7 years ago by Leonid Makarov <[email protected]>
Switch to nip.io instead of xip.io

New, less used (for now), more reliable (hopefully)

86e4cdba1f15b6cdb632ac7705ff264960e349f5 authored almost 7 years ago by Leonid Makarov <[email protected]>
Added PHP module test case

30818696771c2c0ca158ad5b325bd3f687af1557 authored almost 7 years ago by Leonid Makarov <[email protected]>
Cleanup output after each run in tests

53b069c7c07a0840f861fcb1130c5f725bc53dbf authored almost 7 years ago by Leonid Makarov <[email protected]>
Add php7-gd. Fixes #22

841dccfbe732ce2718c25532d362ef1f602716c6 authored almost 7 years ago by Leonid Makarov <[email protected]>
Dockerfile refactoring

- use ; instead of &&
- indent command arguments

755c9a079504a43c9ce0ab253b950dbc90465563 authored almost 7 years ago by Leonid Makarov <[email protected]>
Use docker v17.09.0-ce

That's what is used in Docksal for now.

f04ff79c693c270042b2fab6ce9b4d069525e4f5 authored almost 7 years ago by Leonid Makarov <[email protected]>
Bump versions

- Alpine Linux 3.7
- GLIBC 2.27-r0
- Docker Compose 1.19.0

594b319baee126ccf0e292ee4bc4ae3b55db241e authored almost 7 years ago by Leonid Makarov <[email protected]>
Merge pull request #18 from sean-e-dietrich/patch-5

Update slack. Closes #20

9f3a43c4b0da36a9087c18480bb0fed14603dac0 authored almost 7 years ago by Leonid Makarov <[email protected]>
Merge pull request #21 from haixiang/develop

Add 'patch' to apk add command (used by composer-patches)

79512843180dbb7288ed8466c54361836503debf authored almost 7 years ago by Leonid Makarov <[email protected]>
Adding patch package.

41f379950b88dd7dd68339e2b1563ae7533f5f44 authored almost 7 years ago by Dima Nikitin <[email protected]>
Update README.md

Updated readme to include documented variables recently added to slack script

377d3886ad7c139c1473f881f3de25da3ca08807 authored almost 7 years ago by Sean Dietrich <[email protected]>
Update slack

changed slack configuration to make it more customizable.

03336eb5fafd16e51f294cac0df82fa98ccd8128 authored almost 7 years ago by Sean Dietrich <[email protected]>
Merge pull request #16 from sean-e-dietrich/patch-4

Update README.md

Resolves #15

08d0749d5b41175b151bfbb5d402c121c54d6454 authored almost 7 years ago by Leonid Makarov <[email protected]>
Fix build-notify failure case in docs

[ci skip]

69fa14ce96ae5586d5d279ed0fe5851f1868453b authored almost 7 years ago by Leonid Makarov <[email protected]>
Update README.md

Added undocumented variables to README.md: DOCKSAL_HOST_USER, GIT_USER_EMAIL, GIT_USER_NAME

b26d77a93af55fc98c29a6af8488c9b846de97fe authored almost 7 years ago by Sean Dietrich <[email protected]>
Updated docs

[ci skip]

ab001ee83a79e581b34c1f2f3cb33f7597edd1a2 authored almost 7 years ago by Leonid Makarov <[email protected]>
build-notify: return 0

Necessary when doing multiple if statements in a row, since the last one sets the exit code

0a4d5add97337a6fe20c0e3edef8562d33014dd2 authored almost 7 years ago by Leonid Makarov <[email protected]>
Fixes

235b87e15bd65158cd9bac8873097c455e812f13 authored almost 7 years ago by Leonid Makarov <[email protected]>
build-env: added GIT_REPO_SERVICE for bitbucket and gitlab

f28ecabb36a88106bd99d53bdcd8e92f767636f0 authored almost 7 years ago by Leonid Makarov <[email protected]>
Build status notifications

build-notify can post updates via builds status API (Github and Bitbucket) and/or pull request c...

fcf16561ab48e8aa58e10649dba17c7444054bb3 authored almost 7 years ago by Leonid Makarov <[email protected]>
Move Github/Bitbucket notifications into build-notify

674098c96edc819239015841ded643986f8bf2da authored almost 7 years ago by Leonid Makarov <[email protected]>
Un-silenced curl calls

69aea3ab547006ec971cb28aed210f7669467a3b authored almost 7 years ago by Leonid Makarov <[email protected]>
CircleCI: fixed Bitbucket pull request comment posting

7824cc20b9f98c0996721ef4c600c2c95482e8e5 authored almost 7 years ago by Leonid Makarov <[email protected]>
CircleCI: added GIT_REPO_SERVICE

Ether "github" or "bitbucket"

ecca4a5fb59887c6d163afeebf1eb08f36ce901f authored almost 7 years ago by Leonid Makarov <[email protected]>
CircleCI: simplified PR number extraction

443e140f2da694df35bc20e09f97d81559bef0c0 authored almost 7 years ago by Leonid Makarov <[email protected]>
Bitbucket and Github API call refactoring

- BITBUCKET_API_AUTH replaced with BITBUCKET_TOKEN
- Using globally defined variables from build...

f69776037074f09d689feb6f4fd509c4e14c3b46 authored almost 7 years ago by Leonid Makarov <[email protected]>
Added GIT_PR_NUMBER in build-env

6c5acba1845b04b8ccf67a4a1a85483e2c8ca44a authored almost 7 years ago by Leonid Makarov <[email protected]>
Added BITBUCKETCI in build-env

If set ("true") then we are running in Bitbucket Pipelines

2ac3d7bfaa34b5e848f2ccc4282fb0c8a7a2f9bb authored almost 7 years ago by Leonid Makarov <[email protected]>
Fix sandbox URL when posting to Bitbucket buils status API

cdccef9254347efb42395682b7c6e85863278ff3 authored almost 7 years ago by Leonid Makarov <[email protected]>
REMOTE_BUILD_BASE. Fixes #11 (#13)

Allow overriding the base directory for all builds on the sandboxes server via REMOTE_BUILD_BASE...

1467943bd134c1986240fd09d44bb3ccd4a971b3 authored almost 7 years ago by Sean Dietrich <[email protected]>
CircleCI: post back sandbox URL as a Pull Request comment (Github and Bitbucket) (#12)

* Added option to post URL to Pull Request if using Circle CI
* Posts to Github Pull Request
*...

07b2c490b342838c7229d9831b9d999dd9b1899c authored almost 7 years ago by Sean Dietrich <[email protected]>
Fix only php tag being pushed to Docker Hub

cb952908882a5f4f2da38c2c6cee9c3e96faae61 authored almost 7 years ago by Leonid Makarov <[email protected]>
User AGENT_HOME, fix permissions during/after COPY

320167243de3405a34ab70ca4e4ec76a32e6cc17 authored almost 7 years ago by Leonid Makarov <[email protected]>
Use curly brackets

9dba150a8301e65819612f342d821c62c62ba807 authored almost 7 years ago by Leonid Makarov <[email protected]>
Post sandbox URL to Bitbucket build status API

8b1e5ac56ce5f4c8a970f6949f7d9959ea976a36 authored almost 7 years ago by Leonid Makarov <[email protected]>
Push to Docker Hub with Travis

621d593655bbdf5a6f95edfacb2c2017c337b680 authored about 7 years ago by Leonid Makarov <[email protected]>
Renaming to docksal/ci-agent

a3e2d0f3c18b12ff15f52a285b5b45e49b2731b5 authored about 7 years ago by Leonid Makarov <[email protected]>
Updated README and added examples

a8af18615cb39331a2e1de7ee73e83faad8c8003 authored about 7 years ago by Leonid Makarov <[email protected]>
build-acp: check BITBUCKET_API_AUTH is set

a7167a9aa15672cf74e5fd15a4fcd1417ad51441 authored about 7 years ago by Leonid Makarov <[email protected]>
build-acp: allow specifying a subpath within the destination path

36cacf69a449286568d2ac682c9b4e59dd4ae88f authored about 7 years ago by Leonid Makarov <[email protected]>
Bump versions

docker 17.09.01
docker-compose 1.18.0

9f995b1506dda16358d9dfb475f214b6d4aab4b5 authored about 7 years ago by Leonid Makarov <[email protected]>
Added rsync

Closes #8

3dace31fdb1dee93a96b14340764883fa03aec05 authored about 7 years ago by Leonid Makarov <[email protected]>
Merge pull request #10 from aczietlow/gitlab-support

fixes #9 by adding support for GitLabCI

383267d4376411eca1138a0050e0096569a6c0bd authored about 7 years ago by Leonid Makarov <[email protected]>
fixes #9 by adding support for gtlab CI.

fbd6b38a0c7e5bea9a2a3c4d1b33f320cda045d4 authored about 7 years ago by Chris Zietlow <[email protected]>
Added a note about mc cp vs mc mirror in a build environment

f6f7bd6a8de570e0555b9a86408e789a447d7d6a authored about 7 years ago by Leonid Makarov <[email protected]>
Use mc mirror instead of mc cp

67b9943c15f53409f0755f083508426ae23280b6 authored about 7 years ago by Leonid Makarov <[email protected]>
Added a check for non-empty source

Outputting variables when empty source (this can be used for debugging)

79def68632b93561be0d196ff4f90dc4476aab58 authored about 7 years ago by Leonid Makarov <[email protected]>
Moved artifact storage settings into build-acp

This makes it easier to override ARTIFACTS_* variables at runtime

e0a0acf372c5ad5e18eb2f9c49c700dcb4f81f3e authored about 7 years ago by Leonid Makarov <[email protected]>