aboutsummaryrefslogtreecommitdiff
blob: 287e676cd23bf098a132294b521c6a50c63f1ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: generic

services:
  - docker

env:
  - DOCKER_CLIENT_TIMEOUT=120 COMPOSE_HTTP_TIMEOUT=120

before_install:
  # TODO Upload the image to the official gentoo account and get rid of the mmagorsc account
  - docker pull mmagorsc/gentoo-rails:latest && docker tag mmagorsc/gentoo-rails:latest gentoo/rails:latest
  - docker build -t gentoo/gpackages:latest .

script:
  # Run tests using the prebuild image
  - docker-compose -f docker-compose.test.yml up --exit-code-from http-serving
  ## TODO Use either DockerHub or Github Packages and uncomment this block afterwards
  ## Publish on DockerHub
  #- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  ## Publish on Github Packages
  #- docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN docker.pkg.github.com
  #- docker push gentoo/gpackages:latest
  #- echo "Published docker image"