Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_readme #7

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/gigalixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ jobs:
with:
ref: main
fetch-depth: 0
- run: sudo pip install gigalixir --ignore-installed six
- run: gigalixir login -e "${{ secrets.GIGALIXIR_EMAIL }}" -y -p "${{ secrets.GIGALIXIR_PASSWORD }}"
- run: gigalixir git:remote ${{ secrets.GIGALIXIR_APP_NAME }}
- run: git push -f gigalixir HEAD:refs/heads/main
- run: gigalixir run mix ecto.migrate

- name: Install Gigalixir CLI
run: sudo pip install gigalixir --ignore-installed six

- name: Login
run: gigalixir login -e "${{ secrets.GIGALIXIR_EMAIL }}" -y -p "${{ secrets.GIGALIXIR_PASSWORD }}"

- name: Add remote git gigalixir
run: gigalixir git:remote ${{ secrets.GIGALIXIR_APP_NAME }}

- name: Deploy
run: git push -f gigalixir HEAD:refs/heads/main

- name: Run migrations
run: gigalixir run mix ecto.migrate
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ Construir o container
make build
```

Criar o banco de dados

```
docker compose run --rm cumbuca mix ecto.create
```

Execute as migrações

```
docker compose run --rm cumbuca mix ecto.migrate
```

Iniciar a aplicação

```
Expand Down