Skip to content

Commit

Permalink
ci: don't push to docker on pull request (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 authored Nov 26, 2023
1 parent bb8df5b commit 324ac62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ jobs:
username: 2mal3
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build
uses: docker/build-push-action@v4
if: github.ref != 'refs/heads/main'
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64/v8

- name: Build and push
uses: docker/build-push-action@v4
if: github.ref == 'refs/heads/main'
with:
context: .
cache-from: type=gha
Expand Down
2 changes: 0 additions & 2 deletions verspaetungsorakel/bahn.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ def get_important_stations():
stations = list(filter(lambda s: s.Verkehr == "FV", stations))
stations = list(filter(lambda s: "Hbf" in s.NAME, stations))

stations = list(filter(lambda s: "Berlin" in s.NAME, stations))

return stations


Expand Down

0 comments on commit 324ac62

Please sign in to comment.