Skip to content

Update apache-camel monorepo from v4.7.0 to v4.9.0 (minor) #31

Update apache-camel monorepo from v4.7.0 to v4.9.0 (minor)

Update apache-camel monorepo from v4.7.0 to v4.9.0 (minor) #31

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
env:
TZ: Europe/Oslo
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Run tests
run: |
sudo timedatectl set-timezone "Europe/Oslo"
mvn --batch-mode test
image:
# only build and push the image when it's a commit to master in Entur's repository
if: github.repository_owner == 'entur' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [ tests ]
outputs:
GHA_DOCKER_PUSH_IMAGE_TAG: ${{ steps.set-output.GHA_DOCKER_PUSH_IMAGE_TAG }}
env:
CONTAINER_REPO: docker.io/entur/kishar
CONTAINER_REGISTRY_USER: ${{ secrets.DOCKERHUB_LOGIN }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: set variables
id: set-output
run: |

Check failure on line 53 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI Build

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 53, Col: 14): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
echo "GHA_DOCKER_PUSH_IMAGE_TAG=`date +%Y-%m-%dT%H-%M`" >> $GITHUB_ENV
echo "::set-output name=GHA_DOCKER_PUSH_IMAGE_TAG::${{ env.GHA_DOCKER_PUSH_IMAGE_TAG }"
- name: Build container image with Jib, push to container repo
run: |
mvn --batch-mode compile com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,${{ env.GHA_DOCKER_PUSH_IMAGE_TAG }}
- name: Tag default branch with the container image tag ${{ env.GHA_DOCKER_PUSH_IMAGE_TAG }}
id: tag-version
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git tag --annotate "$GHA_DOCKER_PUSH_IMAGE_TAG" -m "chore(tag): $GHA_DOCKER_PUSH_IMAGE_TAG [skip ci]" --force
git push origin "$GHA_DOCKER_PUSH_IMAGE_TAG" --force
post_build:
if: github.repository_owner == 'entur' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [ image ]
steps:
- name: Trigger downstream CI
run: |
repo_owner="entur"
repo_name="kishar-deployment-config"
event_type="trigger-downstream-ci"
service="kishar"
version="${{ needs.image.outputs.GHA_DOCKER_PUSH_IMAGE_TAG }}"
curl -X POST \
-H "Authorization: token ${{ secrets.GITFLOW_PAT }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"