-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load data from overpass, add preheating/healthcheck etc., add workflows
- Loading branch information
1 parent
c5cd40a
commit 6aa3ec4
Showing
31 changed files
with
1,304 additions
and
4,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Nightly | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yaml | ||
with: | ||
branch: ${{ github.ref }} | ||
|
||
publish-hamburg-main: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-hamburg | ||
branch: main | ||
location: Hamburg | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-dresden-main: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-dresden | ||
branch: main | ||
location: Dresden | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-hamburg-stable: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-hamburg | ||
branch: stable | ||
location: Hamburg | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-dresden-stable: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-dresden | ||
branch: stable | ||
location: Dresden | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-hamburg-release: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-hamburg | ||
branch: release | ||
location: Hamburg | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-dresden-release: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-dresden | ||
branch: release | ||
location: Dresden | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- stable | ||
- release | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yaml | ||
with: | ||
branch: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- stable | ||
- release | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yaml | ||
with: | ||
branch: ${{ github.ref }} | ||
|
||
publish-hamburg-stable: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-hamburg | ||
branch: stable | ||
location: Hamburg | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-hamburg-release: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-hamburg | ||
branch: release | ||
location: Hamburg | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} | ||
|
||
publish-dresden: | ||
needs: test | ||
uses: ./.github/workflows/publish.yaml | ||
with: | ||
registry: bikenow.vkw.tu-dresden.de | ||
image: ${{ github.repository }}-dresden | ||
branch: ${{ github.ref_name }} | ||
location: Dresden | ||
secrets: | ||
NEXUS_DOCKER_PUB_USERNAME: ${{ secrets.NEXUS_DOCKER_PUB_USERNAME }} | ||
NEXUS_DOCKER_PUB_PASSWORD: ${{ secrets.NEXUS_DOCKER_PUB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run unit tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
description: 'The branch to test' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: docker:latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: Run unit tests | ||
# Note: We can add a test step after the wait-for-postgres.sh script | ||
run: | | ||
docker-compose -f docker-compose.test.yml up --build -d --force-recreate | ||
docker exec -w /code poi-service-backend ls -la | ||
docker exec -w /code poi-service-backend ./wait-for-postgres.sh | ||
docker-compose -f docker-compose.test.yml down -v -t 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.