Use Use OracleLinux-based MySQL Docke #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set environment up | |
run: | | |
docker compose pull | |
docker compose build | |
docker compose run --rm web bundle install | |
docker compose run --rm web rake db:setup | |
docker compose run --rm web rake db:test:prepare | |
- name: Run specs | |
run: | | |
docker compose run --rm web rspec | |
build: | |
needs: test | |
runs-on: ubuntu-22.04 | |
env: | |
DOCKER_REPOSITORY: 'instedd/guisso' | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build image & push to Docker Hub | |
run: ./build.sh |