Merge pull request #252 from dhanyn10/dependabot/composer/fakerphp/fa… #382
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 Image CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
if: github.actor != 'dependabot[bot]' | |
environment: open_ecommerce | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set env | |
run: sed -i "s/RAJAONGKIR_API_KEY=.*/RAJAONGKIR_API_KEY=${{ secrets.RAJAONGKIR_API_KEY }}/g" .env.docker | |
- name: Run docker-compose | |
run: docker-compose up -d | |
- name: Sleep for 10s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 10s | |
- name: database migration with docker | |
run: docker exec oe-web php artisan migrate | |
- name: database seed with docker | |
run: docker exec oe-web php artisan db:seed |