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

chore: Merge master into with-doom #14

Merged
merged 7 commits into from
Feb 20, 2024
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '2.1'
orbs:
shipyard: shipyard/shipyard@3.0.0
shipyard: shipyard/shipyard@3.1.0
jobs:
print-env-data:
machine:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/print-env-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: [push]

jobs:
print-env-data:
runs-on: ubuntu-latest
name: Fetch Shipyard Vars
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Integrate Shipyard
uses: shipyard/[email protected]
with:
api-token: ${{ secrets.SHIPYARD_API_TOKEN }}
timeout-minutes: "10"
- name: Print Env Data
run: |
export CYPRESS_BASE_URL=${SHIPYARD_ENVIRONMENT_URL}
export CYPRESS_BYPASS_TOKEN=${SHIPYARD_BYPASS_TOKEN}
env | grep -e SHIPYARD -e CYPRESS
shell: bash
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ VOLUME=$(shell basename $(PWD))
develop: clean build migrations.upgrade run

clean:
docker-compose rm -vf
docker compose rm -vf

build:
docker-compose build
docker compose build

run:
docker-compose up
docker compose up

shell:
docker-compose run worker \
docker compose run worker \
sh

python-shell:
docker-compose run worker \
docker compose run worker \
poetry run flask shell

postgres.data.delete: clean
docker volume rm $(VOLUME)_postgres

postgres.start:
docker-compose up -d postgres
docker-compose exec postgres \
docker compose up -d postgres
docker compose exec postgres \
sh -c 'while ! nc -z postgres 5432; do sleep 0.1; done'

migrations.blank: postgres.start
docker-compose run worker \
docker compose run worker \
poetry run flask db revision

migrations.create: postgres.start
docker-compose run worker \
docker compose run worker \
poetry run flask db migrate

migrations.upgrade: postgres.start
docker-compose run worker \
docker compose run worker \
poetry run flask db upgrade

migrations.heads: postgres.start
docker-compose run worker \
docker compose run worker \
poetry run flask db heads
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.8'

services:

Expand All @@ -19,7 +19,7 @@ services:

worker:
labels:
shipyard.before: 'poetry run flask db upgrade'
shipyard.init: 'poetry run flask db upgrade'
build: '.'
environment:
DATABASE_URL: 'postgres://obscure-user:obscure-password@postgres/app'
Expand Down
Loading