Skip to content

Instantly share code, notes, and snippets.

@kellyjandrews
Last active October 23, 2017 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellyjandrews/da0729a5000c427b9347bdda2a6f08e3 to your computer and use it in GitHub Desktop.
Save kellyjandrews/da0729a5000c427b9347bdda2a6f08e3 to your computer and use it in GitHub Desktop.
Codeship Example Files
codeship_example:
build: .
environment:
EXAMPLE_ENV_VAR: example-var
- 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!"
FROM ubuntu:zesty
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
COPY . .
CMD ["printenv"]
@mlocher
Copy link

mlocher commented Jul 11, 2017

Couple suggestions from me:

  1. Adapt the services file similar to what Laura did for codeship-library/ruby-rails-todoapp#6 (i.e. remove the top level version and services directive.

  2. 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment