no changes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2023-06-19 18:48:37 -05:00
parent a650cdda21
commit d89bd69ee5
5 changed files with 65 additions and 65 deletions

View File

@ -1,7 +1,7 @@
*.env *.env
*.md *.md
*drone* *drone*
.dockerignore .dockerignore
.git* .git*
Dockerfile Dockerfile
LICENSE LICENSE

View File

@ -1,41 +1,41 @@
kind: pipeline kind: pipeline
name: default name: default
steps: steps:
- name: docker - name: docker
image: plugins/docker image: plugins/docker
settings: settings:
registry: git.jbranan.com registry: git.jbranan.com
dry_run: false dry_run: false
username: jblu username: jblu
password: password:
from_secret: gittea_drone from_secret: gittea_drone
repo: git.jbranan.com/jblu/phc repo: git.jbranan.com/jblu/phc
tags: tags:
- latest - latest
when: when:
branch: branch:
- main - main
- name: test - name: test
image: git.jbranan.com/jblu/phc:latest image: git.jbranan.com/jblu/phc:latest
environment: environment:
PHC_PLEX_SECRET_TOKEN: PHC_PLEX_SECRET_TOKEN:
from_secret: PHC_PLEX_SECRET_TOKEN from_secret: PHC_PLEX_SECRET_TOKEN
PHC_HEALTHCHECK_URL: PHC_HEALTHCHECK_URL:
from_secret: PHC_HEALTHCHECK_URL from_secret: PHC_HEALTHCHECK_URL
PHC_HEALTHCHECK_ID: PHC_HEALTHCHECK_ID:
from_secret: PHC_HEALTHCHECK_ID from_secret: PHC_HEALTHCHECK_ID
PHC_PLEX_HOST: PHC_PLEX_HOST:
from_secret: PHC_PLEX_HOST from_secret: PHC_PLEX_HOST
PHC_PLEX_PROTOCOL: PHC_PLEX_PROTOCOL:
from_secret: PHC_PLEX_PROTOCOL from_secret: PHC_PLEX_PROTOCOL
PHC_PLEX_PORT: PHC_PLEX_PORT:
from_secret: PHC_PLEX_PORT from_secret: PHC_PLEX_PORT
commands: commands:
- echo $PHC_PLEX_SECRET_TOKEN - echo $PHC_PLEX_SECRET_TOKEN
- echo $PHC_HEALTHCHECK_URL - echo $PHC_HEALTHCHECK_URL
- echo $PHC_HEALTHCHECK_ID - echo $PHC_HEALTHCHECK_ID
- echo $PHC_PLEX_HOST - echo $PHC_PLEX_HOST
- echo $PHC_PLEX_PROTOCOL - echo $PHC_PLEX_PROTOCOL
- echo $PHC_PLEX_PORT - echo $PHC_PLEX_PORT
- /bin/sh /opt/phc.sh - /bin/sh /opt/phc.sh

View File

@ -1,9 +1,9 @@
from alpine:latest from alpine:latest
RUN apk add --no-cache curl RUN apk add --no-cache curl
COPY crontab opt COPY crontab opt
COPY entrypoint.sh opt COPY entrypoint.sh opt
COPY phc.sh opt COPY phc.sh opt
RUN crontab /opt/crontab RUN crontab /opt/crontab
RUN chmod +x /opt/entrypoint.sh RUN chmod +x /opt/entrypoint.sh
RUN chmod +x /opt/phc.sh RUN chmod +x /opt/phc.sh
CMD ["/opt/entrypoint.sh"] CMD ["/opt/entrypoint.sh"]

18
LICENSE
View File

@ -1,9 +1,9 @@
MIT License MIT License
Copyright (c) 2023 jblu Copyright (c) 2023 jblu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,2 +1,2 @@
# phc # phc