diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..0853a26 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,22 @@ +name: docker-image + +on: [push, pull_request] + +jobs: + test: + name: Run tests + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3.5.0 + - name: Build Docker image + run: docker build . -t="gtfy-listener" + - name: Remove test build image + run: docker rmi $(docker image ls -q) \ No newline at end of file diff --git a/README.md b/README.md index b747640..9ab3b60 100644 --- a/README.md +++ b/README.md @@ -75,11 +75,13 @@ docker docker rmi (imageid) docker image prune docker builder prune --all -f docker system prune --all +docker rm $(docker ps -all -q) +docker rmi $(docker image ls -q) ``` ## Inspiration -Pushtify (Gotify to Pushover forwarder) - +Pushtify (Gotify to Pushover forwarder) - ## LICENSE