Skip to content

Commit

Permalink
chore: Combine all steps into one job (#60)
Browse files Browse the repository at this point in the history
Refs: XRDCAT-28
  • Loading branch information
melbeltagy authored Sep 27, 2024
1 parent 9b3ac6b commit 06fb329
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/publish_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ on:
workflow_run:
workflows: ["X-Road-Catalog tests"]
types: [completed]
branches: [develop]
branches: [develop, XRDCAT-28-**]
workflow_dispatch: {}
env:
REGISTRY: ghcr.io
XROAD_HOME: ${{ github.workspace }}
jobs:
Setup:
BuildAndPublish:
name: Setup Environment
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-24.04
strategy:
matrix:
service: [collector, lister]
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -30,27 +33,8 @@ jobs:
cache-cleanup: always
dependency-graph: generate-and-submit
add-job-summary-as-pr-comment: always
BuildJARs:
name: Build JARs
runs-on: ubuntu-24.04
needs: Setup
permissions:
contents: read
packages: write
steps:
- name: Build JARs (skipping tests)
run: ./gradlew --no-daemon build -x test
PublishDockerImages:
name: Publish Docker Images
runs-on: ubuntu-24.04
needs: BuildJARs
strategy:
matrix:
service: [collector, lister]
permissions:
contents: read
packages: write
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 06fb329

Please sign in to comment.