diff --git a/.github/workflows/push_docker.yml b/.github/workflows/push_docker.yml index 3b11cc3..8fd611e 100644 --- a/.github/workflows/push_docker.yml +++ b/.github/workflows/push_docker.yml @@ -34,6 +34,13 @@ jobs: username: martabal password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GH_TOKEN }} + - name: Build and push immich uses: docker/build-push-action@v3.2.0 with: @@ -44,4 +51,6 @@ jobs: tags: | martabal/webhook-to-ntfy:${{ inputs.tags }} martabal/webhook-to-ntfy:latest + ghcr.io/${{ github.repository_owner }}/webhook-to-ntfy:${{ inputs.tags }} + ghcr.io/${{ github.repository_owner }}/webhook-to-ntfy:latest diff --git a/README.md b/README.md index 55dc731..2cf1ec8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## How to use it -Edit config.yaml to use the services you want. Then rename it config.yaml. +Edit config.yaml to use the services you want. Then rename it config.yaml. Services available : @@ -19,10 +19,11 @@ Services available : ```sh docker run --name=webhook-to-ntfy \ - -e QBITTORRENT_URL=http://192.168.1.10:8080 \ - -e QBITTORRENT_PASSWORD='' \ - -e QBITTORRENT_USERNAME=admin \ - -p 8090:8090 \ + -e NTFY_BASE_URL=http://192.168.1.10:8080 \ + -e NTFY_USERNAME=admin \ + -e NTFY_PASSWORD='' \ + -e PORT=3000 `#optional` \ + -p 3000:3000 \ martabal/webhook-to-ntfy ``` @@ -32,12 +33,17 @@ docker run --name=webhook-to-ntfy \ version: "2.1" services: immich: - image: martabal/qbittorrent-exporter:latest - container_name: qbittorrent-exporter + image: martabal/webhook-to-ntfy:latest + container_name: webhook-to-ntfy environment: - - ~/webhook-to-ntfy/config.yaml:/config/config.yaml + - NTFY_BASE_URL=http://192.168.1.10:8080 + - NTFY_USERNAME=admin + - NTFY_PASSWORD='' + - PORT=3000 #optional + volumes: + - ~/webhook-to-ntfy:/config ports: - - 8090:8090 + - 3000:3000 restart: unless-stopped ```