Wercker: Build failing on 'set up environment'. Why?

641 Views Asked by At

I have a Jekyll blog which I'm trying to push to an AWS S3 bucket. I have followed this tutorial.

The build keeps failing. Wercker gives me the following error message:

Build failed on master

setup environment

GET https://registry.hub.docker.com/v1/repositories/wercker/ruby/images returned 404

It the displays my wercker.yml file:

box: wercker/ruby
no-response-timeout: 10
build:
 steps:
     - bundle-install
     - script:
         name: Run Jekyll doctor
         code: bundle exec jekyll doctor
     - script:
         name: Build Jekyll site
         code: bundle exec jekyll build --trace
deploy:
 steps:
     - s3sync:
         key_id: $AWS_ACCESS_KEY_ID
         key_secret: $AWS_SECRET_ACCESS_KEY
         bucket_url: $AWS_BUCKET_URL
         source_dir: _site/
         opts: --acl-public --add-header=Cache-Control:max-age=3600

I'm out of my depth here. Google is only returning other Wercker pages with the same error message. What is causing the error? What steps do I need to take to fix this?

Here's a link to the error page itself.

Any help would be appreciated! Thanks.

1

There are 1 best solutions below

2
On

Solved!

It appears that the tutorial is outdated.

I needed to update wercker.yml to work with Wercker v2.

To do this, I changed: box: wercker/ruby to box: ruby.