Skip to content

Conversation

@garobrik
Copy link
Contributor

No description provided.

@garobrik garobrik requested a review from emidoots April 13, 2020 20:29
@garobrik
Copy link
Contributor Author

couple questions:

  • what are the preferred credentials for pushing to docker?
  • is there a way to dryrun a .travis.yml? i tested locally that goreleaser will build the images correctly, but don't know that it all fits together

Co-Authored-By: Erik Seliger <erikseliger@me.com>
@emidoots
Copy link
Member

is there a way to dryrun a .travis.yml? i tested locally that goreleaser will build the images correctly, but don't know that it all fits together

not easily, theoretically you could configure .travis.yml to run on non-master branches but its more trouble than its worth, and in cases like this I recommend just doing a best-effort then testing in master.

Our buildkite CI in our main repository has better dry-run capabilities, so things are better/different there.

.travis.yml Outdated
- provider: script
script: curl -sL https://git.io/goreleaser | bash
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: You'll need to add this to the env/global secure section above as a Travis encrypted secret. Username can be hard-coded here in plaintext though.

Copy link
Member

@emidoots emidoots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@garobrik garobrik merged commit febc759 into master Apr 16, 2020
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* add docker image build + push to CI

* change docker image version tags to be consistent with our other images

* add git to image for lsif upload

* Update Dockerfile documentation

Co-Authored-By: Erik Seliger <erikseliger@me.com>

* add docker credentials

Co-authored-by: Erik Seliger <erikseliger@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add a CI workflow to publish src-cli as a docker container on each release

5 participants