Last active
October 23, 2017 21:02
-
-
Save kellyjandrews/da0729a5000c427b9347bdda2a6f08e3 to your computer and use it in GitHub Desktop.
Codeship Example Files
This file contains hidden or 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
codeship_example: | |
build: . | |
environment: | |
EXAMPLE_ENV_VAR: example-var |
This file contains hidden or 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
- type: parallel | |
name: example_parallel_step | |
steps: | |
- service: codeship_example | |
command: printenv | |
- service: codeship_example | |
command: ls | |
- name: example_tagged_step | |
tag: master | |
service: codeship_example | |
command: echo "Deploy here!" |
This file contains hidden or 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
FROM ubuntu:zesty | |
RUN mkdir /usr/src/app | |
WORKDIR /usr/src/app | |
COPY . . | |
CMD ["printenv"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couple suggestions from me:
Adapt the services file similar to what Laura did for codeship-library/ruby-rails-todoapp#6 (i.e. remove the top level
version
andservices
directive.Pin to a specific version of Ubuntu, either latest LTS (
ubuntu:xenial
) or the latest release (ubuntu:zesty
).We imo also should think about moving these gists to a Codeship branded (shared) account, which would make overall maintenance easier, or even a normal repository, which would allow using PRs and reviews (and CI if we want to).