blob: fbe8f740973aae5cf2f1b62043245f151529c22f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
language: generic
services:
- docker
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"
|