Skip to content

Auto docker building and deploy in travis CI#521

Merged
code-asher merged 8 commits into
coder:cifrom
lucacasonato:docker-ci
Sep 17, 2019
Merged

Auto docker building and deploy in travis CI#521
code-asher merged 8 commits into
coder:cifrom
lucacasonato:docker-ci

Conversation

@lucacasonato

Copy link
Copy Markdown
Contributor

Docker images now get built & deployed automatically. Extracting the binary from the docker container (#498 (comment)) doesn't work particularly well (and doesn't work for macOS) so binaries are still built the 'old' way for both macOS and Linux. The Docker image is only built when Travis' OS is Linux.

You will need to add a DOCKER_USERNAME and DOCKER_PASSWORD environment variable to Travis to enable it to push. It currently just pushes a tag every time you push to master. Docker does not have draft images afaik

I also cleaned up the .travis.yml file so it uses the same tab spacing everywhere.

Fixes #498.

@code-asher code-asher changed the base branch from master to ci September 17, 2019 16:52
@code-asher code-asher merged commit 7ad2bcb into coder:ci Sep 17, 2019
code-asher pushed a commit that referenced this pull request Sep 17, 2019
* made spacing for travis yaml consistent in file

* cleaned up .travis.yml and moved some code into a script

* checking if i can get travis to build this

* travis

* fixed an if statement

* fixed travis.yml file

* replaced my name with codercom
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.

2 participants