Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.11.x' into 2.11.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/build-snapshot-worker.yml
#	.github/workflows/ci-it-security.yml
#	.github/workflows/ci-pr.yml
#	.github/workflows/schedule-train-builds.yml
  • Loading branch information
corneil committed Apr 10, 2024
2 parents 4f2813d + 91d334e commit 45bbda7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-snapshot-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
- name: Login dockerhub
uses: docker/login-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-it-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run Security IT
run: |
mvn \
Expand Down
25 changes: 4 additions & 21 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,30 @@ name: CI PRs
on:
pull_request:

env:
MAVEN_THREADS: '-T 1'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# cache maven repo
- uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
docker-images: false
swap-storage: false
large-packages: false
# jdk8
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
with:
maven-version: 3.8.8
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
- name: Login dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# build
- name: Build
shell: bash
timeout-minutes: 75
run: |
mvn -B -s .github/settings.xml clean install
- name: Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
reporter: java-junit
list-tests: failed
./mvnw -B -s .github/settings.xml clean install
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/schedule-train-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [2.11.x]
# branch: [main, 2.11.x] # resume when main is 3.x
branch: [main, 2.10.x]
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
Expand Down
7 changes: 7 additions & 0 deletions src/deploy/carvel/deploy-scdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ fi
"$SCDIR/carvel-import-secret.sh" "scdfmetadata" "$NS"
"$SCDIR/carvel-import-secret.sh" "reg-creds-dockerhub" "$NS"

if [ "$SCDF_TYPE" = "pro" ]; then
"$SCDIR/carvel-import-secret.sh" "reg-creds-dev-registry" "$NS"
fi

"$SCDIR/carvel-import-secret.sh" "scdfmetadata" "$NS"
"$SCDIR/carvel-import-secret.sh" "reg-creds-dockerhub" "$NS"

if [ "$SCDF_TYPE" = "pro" ]; then
"$SCDIR/carvel-import-secret.sh" "reg-creds-dev-registry" "$NS"
fi
Expand Down

0 comments on commit 45bbda7

Please sign in to comment.