mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
Have CI push Docker image
This commit is contained in:
parent
67911aacb8
commit
4debe6f5a6
13
.travis.yml
13
.travis.yml
@ -6,10 +6,19 @@ rvm:
|
|||||||
- 2.5
|
- 2.5
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.6"
|
postgresql: 10
|
||||||
before_install:
|
before_install:
|
||||||
- "psql -c 'create database frankfurter_test;' -U postgres"
|
- "psql -c 'create database frankfurter_test;' -U postgres"
|
||||||
|
|
||||||
bundler_args: "--without development"
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
bundler_args: "--without development test"
|
||||||
env:
|
env:
|
||||||
- APP_ENV=test
|
- APP_ENV=test
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: script
|
||||||
|
script: bash bin/docker_push
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
5
bin/docker_push
Executable file
5
bin/docker_push
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
docker build -t "$DOCKER_USERNAME/frankfurter" .
|
||||||
|
docker push "$DOCKER_USERNAME/frankfurter"
|
Loading…
Reference in New Issue
Block a user