diff --git a/.dockerignore b/.dockerignore index adb9c08..d853781 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,15 +1,12 @@ -**/__pycache__/ -*_cache/ .idea/ +.vscode/ .env +.dockerignore .git/ .gitignore .github/ -.vscode/ -**/bin +/*.md Dockerfile -.dockerignore .coverage -LICENSE -README.md -snapcraft.yaml +**/__pycache__/ +*_cache/ diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a4877d7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Build and Publish + +on: + release: + types: [ published ] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: | + saphyel/tasker:latest + saphyel/tasker:${{ github.event.release.tag_name }} diff --git a/.gitignore b/.gitignore index 471c962..3b4bf22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,9 @@ **/__pycache__/ build/ *.egg-info/ -.env *_cache/ -.coverage -*.snap lib/ bin/ pyvenv.cfg +.env +.coverage diff --git a/snapcraft.yaml b/snapcraft.yaml deleted file mode 100644 index 0e7202a..0000000 --- a/snapcraft.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: tasker -summary: Simple task app to remember what you did # 79 char long summary -description: App the uses an external MongoDB to store and find everything you did previous days - -base: core22 -version: '1.0' -grade: stable -confinement: strict -source-code: https://github.com/Saphyel/tasker - -parts: - tasker: - plugin: python - source: . - python-packages: - - . - -apps: - tasker: - command: bin/tasker