Skip to content

Commit

Permalink
Run in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 12, 2024
1 parent d1a0b6f commit 4bfd1e1
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
pull_request:
branches: [ master ]

env:
MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always"

jobs:

Expand All @@ -17,10 +19,6 @@ jobs:

env:
LANG: ${{ matrix.locale }}
MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always"
CONTAINER_REGISTRY_NAMESPACE: docker.io/opentransitsoftwarefoundation/
CONTAINER_REGISTRY_USER: onebusawaybot
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -50,13 +48,7 @@ jobs:
run: |
mvn $MAVEN_ARGS test package
- name: Build container image tarball
run: |
MAVEN_SKIP_ARGS="-Dmaven.test.skip=true -Dmaven.source.skip=true"
mvn $MAVEN_ARGS $MAVEN_SKIP_ARGS package jib:buildTar
cli-integration-tests:

runs-on: ubuntu-latest

steps:
Expand All @@ -70,3 +62,25 @@ jobs:

- name: Run CLI integration tests
run: ./cli-tests/cli-tests.sh

container-image:
runs-on: ubuntu-latest

env:
CONTAINER_REGISTRY_NAMESPACE: docker.io/opentransitsoftwarefoundation
CONTAINER_REGISTRY_USER: onebusawaybot
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

- name: Build container image tarball
run: |
MAVEN_SKIP_ARGS="-Dmaven.test.skip=true -Dmaven.source.skip=true"
mvn $MAVEN_ARGS $MAVEN_SKIP_ARGS package jib:build

0 comments on commit 4bfd1e1

Please sign in to comment.