Tweak, add CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Rune Juhl Jacobsen 2023-02-19 19:56:06 +01:00
parent 0af95a105b
commit 4a0fe51e0d
3 changed files with 19 additions and 2 deletions

15
.woodpecker.yml Normal file
View file

@ -0,0 +1,15 @@
---
pipeline:
build:
image: git.petardo.dk/runejuhl/dockerfiles/buildah/stable:v1.28.0
privileged: true
commands:
- |-
echo $${WOODPECKER_CI} | buildah login --username runejuhl --password-stdin git.petardo.dk
- 'cd snapserver'
- |-
buildah build -f ./Dockerfile -t git.petardo.dk/runejuhl/grafana-webhook-to-matrix
- |-
buildah push git.petardo.dk/runejuhl/grafana-webhook-to-matrix
secrets:
- woodpecker_ci

View file

@ -21,7 +21,6 @@ RUN pip --disable-pip-version-check install --no-cache-dir -r /requirements.txt
# Set up app # Set up app
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY grafana_webhook_to_matrix.py ./
# Set up user # Set up user
RUN mkdir -p /usr/src/app/home && \ RUN mkdir -p /usr/src/app/home && \
@ -32,4 +31,7 @@ ENV PYTHONFAULTHANDLER=1
USER 998 USER 998
EXPOSE 8003 EXPOSE 8003
COPY grafana_webhook_to_matrix.py ./
CMD ["python3", "grafana_webhook_to_matrix.py"] CMD ["python3", "grafana_webhook_to_matrix.py"]

View file

@ -54,4 +54,4 @@ app.add_routes([
if __name__ == '__main__': if __name__ == '__main__':
web.run_app(app, host='127.0.0.1', port=8003) web.run_app(app, host='0.0.0.0', port=8003)