fix: bump go-netex to fix ServiceCalendar/operatingPeriods field name #186
This file contains hidden or 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
| name: CI/CD | |
| on: | |
| push: | |
| env: | |
| PROJECT_NAME: transmodel-api | |
| DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-app | |
| DOCKER_TAG: ${{ github.sha }} | |
| SERVER_PORT: 1055 | |
| GTFS2NETEX_TAG: 1.2 | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@v4 | |
| - name: Create .env file for testing | |
| uses: noi-techpark/github-actions/env-file@v2 | |
| env: | |
| X_COMPOSE_PROJECT_NAME: ${{ env.PROJECT_NAME }} | |
| X_DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
| X_DOCKER_TAG: ${{ env.DOCKER_TAG }} | |
| X_SERVER_PORT: ${{ env.SERVER_PORT}} | |
| X_GTFS2NETEX_TAG: ${{ env.GTFS2NETEX_TAG }} | |
| X_NINJA_BASE_URL: https://mobility.api.opendatahub.testingmachine.eu | |
| X_NINJA_REFERER: transmodel-api-cicd | |
| X_GIN_MODE: release | |
| X_LOG_LEVEL: WARNING | |
| - name: Run automated tests | |
| run: ./test/test.sh | |
| deploy-test: | |
| runs-on: ubuntu-22.04 | |
| if: github.ref == 'refs/heads/main' | |
| needs: test | |
| concurrency: | |
| group: deploy-test | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v2 | |
| - name: Create .env file | |
| uses: noi-techpark/github-actions/env-file@v2 | |
| env: | |
| X_COMPOSE_PROJECT_NAME: ${{ env.PROJECT_NAME }} | |
| X_DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
| X_DOCKER_TAG: ${{ env.DOCKER_TAG }} | |
| X_SERVER_PORT: ${{ env.SERVER_PORT}} | |
| X_GTFS2NETEX_TAG: ${{ env.GTFS2NETEX_TAG }} | |
| X_NINJA_BASE_URL: https://mobility.api.opendatahub.testingmachine.eu | |
| X_NINJA_REFERER: transmodel-api-test | |
| X_GIN_MODE: release | |
| X_LOG_LEVEL: INFO | |
| X_SWAGGER_URL: https://swagger.opendatahub.testingmachine.eu | |
| X_API_URL: https://transmodel.api.opendatahub.testingmachine.eu | |
| - name: Build and push images | |
| uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
| with: | |
| docker-username: ${{ github.actor }} | |
| docker-password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy application | |
| uses: noi-techpark/github-actions/docker-deploy@v2 | |
| with: | |
| hosts: 'test' | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| docker-username: 'noi-techpark-bot' | |
| docker-password: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| project-name: ${{ env.PROJECT_NAME }} | |
| deploy-prod: | |
| runs-on: ubuntu-22.04 | |
| if: github.ref == 'refs/heads/prod' | |
| needs: test | |
| concurrency: | |
| group: deploy-prod | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v2 | |
| - name: Create .env file | |
| uses: noi-techpark/github-actions/env-file@v2 | |
| env: | |
| X_COMPOSE_PROJECT_NAME: ${{ env.PROJECT_NAME }} | |
| X_DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
| X_DOCKER_TAG: ${{ env.DOCKER_TAG }} | |
| X_SERVER_PORT: ${{ env.SERVER_PORT}} | |
| X_GTFS2NETEX_TAG: ${{ env.GTFS2NETEX_TAG }} | |
| X_NINJA_BASE_URL: https://mobility.api.opendatahub.com | |
| X_NINJA_REFERER: transmodel-api | |
| X_GIN_MODE: release | |
| X_LOG_LEVEL: INFO | |
| X_SWAGGER_URL: https://swagger.opendatahub.com | |
| X_API_URL: https://transmodel.api.opendatahub.com | |
| - name: Build and push images | |
| uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
| with: | |
| docker-username: ${{ github.actor }} | |
| docker-password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy application | |
| uses: noi-techpark/github-actions/docker-deploy@v2 | |
| with: | |
| hosts: 'prod' | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| docker-username: 'noi-techpark-bot' | |
| docker-password: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
| project-name: ${{ env.PROJECT_NAME }} |