Ensure workflows for 2022.0.x is same as main (#581)
Update 2022.0.x workflows to match main.
This commit is contained in:
committed by
GitHub
parent
5a55082383
commit
bcc0cd4cb4
10
.github/actions/install-trivy/action.yml
vendored
Normal file
10
.github/actions/install-trivy/action.yml
vendored
Normal file
@@ -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
.github/workflows/apps-plugin-milestone.yml
vendored
2
.github/workflows/apps-plugin-milestone.yml
vendored
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
2
.github/workflows/apps-plugin-release.yml
vendored
2
.github/workflows/apps-plugin-release.yml
vendored
@@ -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 \
|
||||
|
||||
9
.github/workflows/apps-plugin-snapshot.yml
vendored
9
.github/workflows/apps-plugin-snapshot.yml
vendored
@@ -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'
|
||||
@@ -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 \
|
||||
@@ -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() }}
|
||||
|
||||
2
.github/workflows/cental-sync-create.yml
vendored
2
.github/workflows/cental-sync-create.yml
vendored
@@ -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
|
||||
|
||||
7
.github/workflows/ci-2022-0-x.yml
vendored
7
.github/workflows/ci-2022-0-x.yml
vendored
@@ -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
|
||||
@@ -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
.github/workflows/ci-it.yml
vendored
2
.github/workflows/ci-it.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/ci-main.yml
vendored
1
.github/workflows/ci-main.yml
vendored
@@ -10,6 +10,7 @@ on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '.github/**'
|
||||
- 'spring-cloud-dataflow-apps-plugin/**'
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
|
||||
16
.github/workflows/common.yml
vendored
16
.github/workflows/common.yml
vendored
@@ -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: |
|
||||
@@ -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: |
|
||||
@@ -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: |
|
||||
@@ -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: |
|
||||
@@ -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"
|
||||
|
||||
2
.github/workflows/descriptor.yml
vendored
2
.github/workflows/descriptor.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user