Skip to content

Commit

Permalink
Ensure workflows for 2022.0.x is same as main (#581)
Browse files Browse the repository at this point in the history
Update 2022.0.x workflows to match main.
  • Loading branch information
Corneil du Plessis authored Nov 20, 2024
1 parent 5a55082 commit bcc0cd4
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .github/actions/install-trivy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'Install Trivy'
description: 'Install Trivy'

runs:
using: composite
steps:
- name: 'Install Trivy'
shell: bash
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.50.1
2 changes: 1 addition & 1 deletion .github/workflows/apps-plugin-milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
${{ runner.os }}-m2-
- name: Configure JFrog Cli
run: |
jfrog mvnc \
jfrog rt mvnc \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--repo-resolve-releases=libs-milestone \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/apps-plugin-next-dev-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-m2-
- name: Configure JFrog Cli
run: |
jfrog mvnc \
jfrog rt mvnc \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--repo-resolve-releases=libs-milestone \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/apps-plugin-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-m2-
- name: Configure JFrog Cli
run: |
jfrog mvnc \
jfrog rt mvnc \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--repo-resolve-releases=libs-release-staging \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/apps-plugin-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Apps Plugin (Snapshot)

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'spring-cloud-dataflow-apps-plugin/**'

env:
MAVEN_THREADS: '-T 0.5C'
Expand Down Expand Up @@ -39,7 +44,7 @@ jobs:
${{ runner.os }}-m2-
- name: Configure JFrog Cli
run: |
jfrog mvnc \
jfrog rt mvnc \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--repo-resolve-releases=libs-milestone \
Expand All @@ -51,7 +56,7 @@ jobs:
- name: Build and Publish
run: |
jfrog rt build-clean
jfrog rt mvn -gs settings.xml -Pfull,deploymentfiles -B install
jfrog rt mvn -gs settings.xml -B install
jfrog rt build-publish
- name: Capture Test Results
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cental-sync-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build:
runs-on: ubuntu22-8-32
runs-on: ubuntu22-8-32-OSS
steps:
- uses: actions/checkout@v3
- uses: jfrog/setup-jfrog-cli@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-2022-0-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
workflow_dispatch:
inputs:
verbose:
required: false
default: 'false'
description: 'Produces verbose output'
description: 'Verbose output'
required: false
push:
paths-ignore:
- '.github/**'
branches:
- '2022.0.x'

jobs:
build:
uses: ./.github/workflows/common.yml
Expand All @@ -22,6 +23,8 @@ jobs:
GCP_CRED_JSON: ${{ secrets.GCP_CRED_JSON }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
with:
branch: '2022.0.x'
verbose: ${{ inputs.verbose == 'true' }}
mavenThreads: '0.5C'
2 changes: 1 addition & 1 deletion .github/workflows/ci-it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: 'Determine Java Version'
id: determineJavaVersion
run: |
if [[ "${{ inputs.version && inputs.version || '4.0.0-SNAPSHOT' }}" == *"4.0.0"* ]]; then
if [[ "${{ inputs.version && inputs.version || '3.2.2-SNAPSHOT' }}" != "3."* ]]; then
JAVA_VERSION=17
else
JAVA_VERSION=8
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
push:
paths-ignore:
- '.github/**'
- 'spring-cloud-dataflow-apps-plugin/**'
branches:
- 'main'

Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
shell: bash
run: |
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
shell: bash
run: |
Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
shell: bash
run: |
Expand Down Expand Up @@ -609,7 +609,7 @@ jobs:
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
shell: bash
run: |
Expand Down Expand Up @@ -767,17 +767,13 @@ jobs:
shell: bash
env:
RELEASE_TRAIN_VERSION: ${{ needs.parameters.outputs.release_train_version }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
BUILD_NAME: ${{ needs.parameters.outputs.build_name }}
BUILD_NUMBER: ${{ needs.parameters.outputs.build_number }}
run: |
ROOT_DIR=$(realpath $PWD)
pushd stream-applications > /dev/null
echo "::notice ::uploading unique version snapshot descriptors:$RELEASE_TRAIN_VERSION"
set -e
SRC_ROOT="$ROOT_DIR/stream-applications/stream-applications-release-train/stream-applications-descriptor/target/classes/META-INF"
TARGET_REPO="libs-snapshot-local/org/springframework/cloud/stream/app/stream-applications-descriptor/${RELEASE_TRAIN_VERSION}"
SRC_ROOT=$ROOT_DIR/stream-applications/stream-applications-release-train/stream-applications-descriptor/target/classes/META-INF
TARGET_REPO=libs-snapshot-local/org/springframework/cloud/stream/app/stream-applications-descriptor/${RELEASE_TRAIN_VERSION}
jfrog rt upload "$SRC_ROOT/kafka-apps-maven.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-maven"
jfrog rt upload "$SRC_ROOT/kafka-apps-docker.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-docker"
jfrog rt upload "$SRC_ROOT/kafka-apps-harbor.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-harbor"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: 'Build: stream-applications-release-train'
shell: bash
timeout-minutes: 30
Expand Down

0 comments on commit bcc0cd4

Please sign in to comment.