Commit Graph

23 Commits

Author SHA1 Message Date
James Mead d5a260c00e Update Ruby to v2.6.6
This is the latest patch version of v2.6.
2020-10-11 14:47:35 +01:00
James Mead 2c655c68d1 Update Ruby to v2.5.8
This is the latest patch version of v2.5.
2020-10-11 14:30:35 +01:00
Chris Croome fc19c38939 Delete SSH private key from the Docker container 2019-02-15 12:44:48 +00:00
Nick Sellen 9d882bc4a3 A few deployments tweaks 2018-11-30 18:01:32 +00:00
Nick Sellen d84a8bad79 Try caching vendor path 2018-11-30 17:25:42 +00:00
Nick Sellen dd3b730e1e Only run production depoy after dev deploy 2018-11-30 17:25:42 +00:00
Nick Sellen d6d1723880 Reorder gitlab ci sections 2018-11-30 16:12:38 +00:00
Nick Sellen fd79fbb35b Only deploy from master, use when:manual for prod 2018-11-30 16:11:05 +00:00
Nick Sellen 7101fedabe Cache all of /usr/local/bundle/
... it doesn't seem to be caching properly but perhaps that's
because it's not setup in the runner properly yet...
2018-11-29 18:23:36 +00:00
Nick Sellen 72f4216aac Also cache built gems 2018-11-29 17:52:25 +00:00
Nick Sellen 4f90793c73 Cache rubygems
Save a bit of co2.
2018-11-29 17:35:40 +00:00
Nick Sellen c13211ff9e Specify deployment information for GitLab 2018-11-29 17:00:24 +00:00
Nick Sellen af19045146 Fixup CI
master/dev need to have seperate bundle install/deploys
2018-11-29 16:07:23 +00:00
Chris Croome 37c2d2cfe8 rsync dev branch 2018-11-29 14:47:18 +00:00
Chris Croome fce5d8bbc1 rsync to dev.static.coops.tech 2018-11-29 12:49:27 +00:00
Chris Croome 92b1459724 Add back necessary eval $(ssh-agent -s) 2018-11-18 16:07:00 +00:00
Chris Croome e35afc0dcd CI tweaks to make it less verbose 2018-11-18 16:05:08 +00:00
Chris Croome 0893e88391 Remove hello world test from .gitlab-ci.yml 2018-11-18 15:34:17 +00:00
Chris Croome 7ee0f5bf24 Added hello world test 2018-11-18 15:17:01 +00:00
Chris Lowis e733ed08e8 Install rsync on CI 2018-11-13 21:55:17 +00:00
Chris Lowis 97667077e1 Attempt to deploy site
@chris has setup a server[1] and added the public half of a key pair
generated using `ssh-keygen -o -t rsa -b 4096` as per the instructions
on docs.gitlab.com[2].

The `before_script` was taken from the same instructions. I set the
two variables SSH_PRIVATE_KEY and SSH_KNOWN_HOSTS in the CI/CD
settings[3].

To see if this works I'm calling `rsync` in the `script` section of
the deploy stage, using the dry-run option, `-n`.

[1] https://git.coop/cotech/website/issues/4#note_9890
[2] https://docs.gitlab.com/ee/ci/ssh_keys/#ssh-keys-when-using-the-docker-executor
[3] https://git.coop/cotech/website/settings/ci_cd
2018-11-13 20:19:19 +00:00
Chris Lowis 48d40e6ad1 Fix ruby version to 2.5.3
This is the latest stable version of ruby.
2018-11-10 22:51:01 +00:00
Chris Lowis d7c5ca4cad Add a .gitlab-ci.yml
Following the instructions[1] for building a jekyll site in gitlab,
I've added this file. Let's see if it works!

[1] https://gitlab.com/pages/jekyll
2018-11-10 22:26:23 +00:00