Skip to content

Instantly share code, notes, and snippets.

@matthew-brett
Created December 31, 2019 15:32
Show Gist options
  • Save matthew-brett/a8e875a64f1d08ffea208a1cd9c46b87 to your computer and use it in GitHub Desktop.
Save matthew-brett/a8e875a64f1d08ffea208a1cd9c46b87 to your computer and use it in GitHub Desktop.

Getting Travis-CI docker image for builds

Covered in this SO post.

As of December 31st 2019:

  • Inspect Worker section of build log for line of form:

    instance: travis-job-e823b3ef-f193-4b66-a4b2-bf847bc386ee travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
    
  • Inspect line equivalent to https://github.com/travis-ci/packer-templates/blob/master/ci-sardonyx.yml#L5 to work out how this line relates to the Travis-CI Dockerhub tag, repo-name. Here I'm looking at the ci-sardonyx templates. You need the docker_tag and image_name lines in the file.

  • In the case above, this becomes travisci/ci-sardonyx:packer-1558623664-f909ac5

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