Skip to content

Commit

Permalink
Merge pull request #74 from mobidata-bw/prepare-move-to-parkendd
Browse files Browse the repository at this point in the history
prepare move to parkendd
  • Loading branch information
the-infinity authored Jan 11, 2024
2 parents 6c4469e + e7bc564 commit ee968d2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: lowercase repo name
id: lower-repo
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}

- name: set current date as env variable
id: version
run: |
echo "builddatetime=$(date +'%Y%m%dT%H%M%S')" >> $GITHUB_OUTPUT
- name: build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:latest,ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:${{ steps.version.outputs.builddatetime }}
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
Expand Down
2 changes: 1 addition & 1 deletion webapp/public_rest_api/park_api_v1/park_api_v1_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_sources_as_dict(self) -> dict:
result = {
'api_version': '1.0',
'server_version': '3.0.0',
'reference': 'https://github.com/binary-butterfly/park-api',
'reference': 'https://github.com/ParkenDD/park-api-v3',
'cities': {},
}

Expand Down
2 changes: 1 addition & 1 deletion webapp/public_rest_api/park_api_v1/park_api_v1_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
park_api_v1_sources_example = {
'api_version': '1.0',
'server_version': '1.0.0',
'reference': 'https://github.com/offenesdresden/ParkAPI',
'reference': 'https://github.com/ParkenDD/park-api-v3',
'cities': {
'City 1': 'city1id',
'City 2': 'city2id',
Expand Down

0 comments on commit ee968d2

Please sign in to comment.