Merge pull request #65 from fieldpapers/update-docs-2024 #52
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: "Docker" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "finnp/[email protected]" | |
env: | |
FILE_NAME: ".env" | |
FILE_DATA: "" | |
- name: Run docker-compose build | |
run: docker-compose build | |
- name: Run docker-compose up | |
run: docker-compose up --detach | |
# - name: Set up database schema | |
# run: docker-compose run web rake db:schema:load | |
# - name: Run migrations | |
# run: docker-compose run web rake db:migrate | |
- name: Run docker-compose down | |
run: docker-compose down |