Skip to content

Commit

Permalink
chore: fix dockerfile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 committed Nov 8, 2021
1 parent ddf36c4 commit 74170c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 33 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: pull latest
run: make pull
run: docker-compose pull
- name: Build image
run: make build
- name: Test code format -- pre-commit
run: make lint
- name: pytest
run: make test
run: docker-compose build
- name: Test image
run: docker-compose run --rm authx pytest --cov=authx/ --cov-report=html
34 changes: 7 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
help:
@echo "Targets:"
@echo " make test"
@echo " make start"
@echo " make down"
@echo " make pull"
@echo " make build"
@echo " make docker-test"
@echo " make lint"
@echo " make mkdocs"
@echo " make clean"
@echo " make clean-test"
@echo " make bumpversion-major"
@echo " make bumpversion-minor"
@echo " make bumpversion-patch"
@echo " make mkdocs"
@echo " make gh-deploy"

test:
docker-test:
docker-compose run --rm authx pytest --cov=authx/ --cov-report=html

start:
docker-compose up -d

down:
docker-compose down

pull:
docker-compose pull

build:
docker-compose build

lint:
docker-compose run --rm authx pre-commit run --all-files
pre-commit run --all-files

mkdocs:
mkdocs serve --livereload

clean:
find . -name '*.pyc' -exec rm -f {} +
Expand All @@ -52,9 +38,3 @@ bumpversion-minor:

bumpversion-patch:
bumpversion patch

mkdocs:
docker-compose run --rm authx mkdocs serve --livereload

gh-deploy:
mkdocs gh-deploy --force

0 comments on commit 74170c4

Please sign in to comment.