From 5457c23959015d79af58cb2301200d4a7e11d877 Mon Sep 17 00:00:00 2001 From: mskian <10300271+mskian@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:54:33 +0530 Subject: [PATCH] workflow for docker --- .github/workflows/docker.yml | 22 ++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker.yml 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