From 0be8d008c527f4bfc056e3b5ed002f7b8a5148cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= <72651575+BreizhHardware@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:41:25 +0200 Subject: [PATCH] Fix entrypoint persmisson --- .github/workflows/create_release.yml | 8 ++++---- Dockerfile | 6 +++--- README.md | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 12f25e2..1bdfde5 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -14,20 +14,20 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . push: true - tags: ${{ secrets.DOCKER_USERNAME }}/ntfy_alerts:latest + tags: ${{ secrets.DOCKER_USERNAME }}/github-ntfy:latest release-on-github: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 2170775..1793470 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,13 @@ LABEL version_number="1.4" ADD ntfy.py / ADD ntfy_api.py / -ADD migration.py /migration.py / ADD requirements.txt / ADD entrypoint.sh / -ADD index.html /var/www/html/index.html / -ADD script.js /var/www/html/script.js / +ADD index.html /var/www/html/index.html +ADD script.js /var/www/html/script.js RUN apk add --no-cache sqlite-dev sqlite-libs gcc musl-dev nginx RUN pip install -r requirements.txt +RUN chmod 700 /entrypoint.sh # Définir les variables d'environnement pour username et password ENV USERNAME="" \ diff --git a/README.md b/README.md index 5ce68c2..726e06d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ python ntfy.py ## Docker: If you want to use the docker image you can use the following docker-compose file: ````yaml -version: '3' services: github-ntfy: image: breizhhardware/github-ntfy:latest