Skip to content

Commit

Permalink
fix gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
dewenni committed Oct 14, 2024
1 parent 810764e commit 8d38919
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v1
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@v2
uses: docker/build-push-action@v6
with:
context: .
file: dockerfile # der Pfad zu deinem Dockerfile
file: dockerfile
push: true
tags: dewenni/lanis:latest
tags: ${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
43 changes: 43 additions & 0 deletions .github/workflows/docker_build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Push Docker Image - RELEASE

on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create release
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag}" \
-F changeNew.md
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
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@v6
with:
context: .
file: dockerfile
push: true
tags: ${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.ref_name }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ cython_debug/
app/config/
app/output/
app/lib/lanisapi/helpers/log/html_logs.txt
session.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
network_mode: host
container_name: lanis
environment:
- INTERVAL=60 # Zeitintervall für Abfragen in Sekunden
- INTERVAL=3600 # Zeitintervall für Abfragen in Sekunden
- HTTP_PORT=4040 # Umgebungsvariable für den HTTP-Server
pull_policy: always
volumes:
Expand Down
3 changes: 3 additions & 0 deletions app/lanis.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def main():
# LANIS-Client erstellen
client = LanisClient(LanisAccount(LANIS_SCHOOL, LANIS_USER, LANIS_PASSWORD))

# Welcome Nachricht
sendPushover("Lanis-App", "Lanis-App ist gestartet und prüft nun regelmäßig Updates im Schulportal")

while True:
retries = 3 # Maximale Anzahl der Versuche
for attempt in range(retries):
Expand Down
1 change: 0 additions & 1 deletion session.json

This file was deleted.

0 comments on commit 8d38919

Please sign in to comment.