Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix upstream conflict #187

Merged
merged 35 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1823633
fix(oauth): remove circular dependency on ExternalAuthTokenFilter bea…
CalvinTse Nov 30, 2021
8dd1c89
fix(web): disable keel by default as it is an optional service (#1453)
man0s Nov 30, 2021
fb2ac10
fix(api): fix movie quotes to match movie script (#1423)
tswanson-cs Nov 30, 2021
b1337db
chore(build): gradle 6.8.1 (#1413)
cfieber Dec 4, 2021
6d8ae57
chore(dependencies): Autobump korkVersion (#1493)
spinnakerbot Dec 7, 2021
d340a49
chore(dependencies): Autobump korkVersion (#1495)
spinnakerbot Dec 10, 2021
ecc999c
chore(dependencies): Autobump korkVersion (#1496)
spinnakerbot Dec 14, 2021
b4ac721
fix(vulnerability): avoid expose gate endpoints (#1497)
cristhian-castaneda Dec 14, 2021
ab5f226
chore(dependencies): Autobump korkVersion (#1501)
spinnakerbot Dec 14, 2021
ce4cd03
chore(dependencies): Autobump fiatVersion (#1504)
spinnakerbot Dec 14, 2021
c25eef9
chore(dependencies): Autobump korkVersion (#1502)
spinnakerbot Dec 15, 2021
11d7ce6
feat(web): Expose experimental account storage API (#1494)
jvz Jan 7, 2022
d3c7213
chore(build): update mergify config (#1506)
link108 Jan 19, 2022
af53a58
fix(gate): Typos in Account Management API (#1510)
jvz Jan 26, 2022
46114ee
fix(gate/web): Add explicit name property to AccountDefinition (#1514)
jvz Feb 8, 2022
d715f61
chore(dependencies): Autobump korkVersion (#1515)
spinnakerbot Feb 9, 2022
e2a108d
fix(authn/oauth2): prevent oauth2 redirect loops (#1517)
chris-h-phillips Feb 15, 2022
c9eb62c
chore(ci): update setup-java GHA to v2 (#1518)
kskewes-sf Feb 22, 2022
7915082
fix(dependency): Issue with jackson-bom and kotlin-bom version confli…
j-sandy Feb 28, 2022
e950301
chore(dependencies): Autobump spinnakerGradleVersion (#1519)
spinnakerbot Mar 2, 2022
135079a
chore(dependencies): Autobump spinnakerGradleVersion (#1520)
spinnakerbot Mar 3, 2022
4c814d2
chore(dependencies): Autobump spinnakerGradleVersion (#1521)
spinnakerbot Mar 3, 2022
af2e267
chore(dependencies): Autobump spinnakerGradleVersion (#1522)
spinnakerbot Mar 4, 2022
1f7a3b8
chore(dependencies): Autobump spinnakerGradleVersion (#1523)
spinnakerbot Mar 4, 2022
6855c58
chore(dependencies): Autobump spinnakerGradleVersion (#1524)
spinnakerbot Mar 4, 2022
d52a5eb
chore(dependencies): Autobump fiatVersion (#1528)
spinnakerbot Mar 10, 2022
e4d271b
chore(ci): GHA - container image and apt package build & push (#1529)
kskewes-sf Mar 10, 2022
004ed67
chore(ci): GHA - simplify build versioning (#1530)
kskewes-sf Mar 16, 2022
8341e93
fix(plugins-test): try harder for the version of versionNotSupportedP…
dbyron-sf Mar 16, 2022
e78b7fd
chore(cit): GHA - plugin builds require SemVer (#1531)
kskewes-sf Mar 17, 2022
b0a7dcf
chore(dependencies): Autobump korkVersion (#1536)
spinnakerbot Mar 23, 2022
aed61c6
chore(dependencies): Autobump spinnakerGradleVersion (#1537)
spinnakerbot Mar 23, 2022
8c8a839
feat(credentials): Update account type discriminator (#1533)
jvz Mar 23, 2022
141a26c
Merge remote-tracking branch 'upstream/master' into fix-upstream-conf…
singh09iet Mar 31, 2022
024b561
resolved AuthConfig file conflict.
singh09iet Mar 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 47 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
branch-build:
Expand All @@ -16,14 +17,52 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
fetch-depth: 0
- uses: actions/setup-java@v2
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
java-version: 11
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git describe --tags --abbrev=0 --match="v[0-9]*" | cut -c2-)-dev-${GITHUB_REF_NAME}-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
- name: Build
run: ./gradlew build --stacktrace
env:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build --stacktrace ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v1
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.slim
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-unvalidated-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated-slim"
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.ubuntu
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ github.ref_name }}-latest-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-unvalidated-ubuntu"
48 changes: 36 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,44 @@ on: [ pull_request ]

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew build
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
cache: 'gradle'
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git describe --tags --abbrev=0 --match="v[0-9]*" | cut -c2-)-dev-pr-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
- name: Build
env:
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }}
run: ./gradlew build ${{ steps.build_variables.outputs.REPO }}-web:installDist
- name: Build slim container image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.slim
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-slim"
- name: Build ubuntu container image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.ubuntu
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:latest-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-ubuntu"
55 changes: 51 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ on:

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- uses: actions/setup-java@v1
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
cache: 'gradle'
- name: Assemble release info
id: release_info
env:
Expand All @@ -28,8 +32,12 @@ jobs:
echo ::set-output name=SKIP_RELEASE::${SKIP_RELEASE}
echo ::set-output name=IS_CANDIDATE::${IS_CANDIDATE}
echo ::set-output name=RELEASE_VERSION::${RELEASE_VERSION}
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::${GITHUB_REPOSITORY##*/}
echo ::set-output name=VERSION::"$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
- name: Release build
if: steps.release_info.outputs.IS_CANDIDATE == 'false'
env:
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_nexusPublishEnabled: true
Expand All @@ -38,7 +46,46 @@ jobs:
ORG_GRADLE_PROJECT_nexusPgpSigningKey: ${{ secrets.NEXUS_PGP_SIGNING_KEY }}
ORG_GRADLE_PROJECT_nexusPgpSigningPassword: ${{ secrets.NEXUS_PGP_SIGNING_PASSWORD }}
run: |
./gradlew --info publishToNexus closeAndReleaseNexusStagingRepository
./gradlew --info build ${{ steps.build_variables.outputs.REPO }}-web:installDist publishToNexus closeAndReleaseNexusStagingRepository
- name: Publish apt packages to Google Artifact Registry
env:
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_artifactRegistryPublishEnabled: true
GAR_JSON_KEY: ${{ secrets.GAR_JSON_KEY }}
run: |
./gradlew --info publish
- name: Login to GAR
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/login-action@v1
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
- name: Build and publish slim container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.slim
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-unvalidated"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-unvalidated-slim"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-unvalidated-slim"
- name: Build and publish ubuntu container image
# Only run this on repositories in the 'spinnaker' org, not on forks.
if: startsWith(github.repository, 'spinnaker/')
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.ubuntu
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-unvalidated-ubuntu"
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.release_info.outputs.RELEASE_VERSION }}-${{ steps.build_variables.outputs.VERSION }}-unvalidated-ubuntu"
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: actions/create-release@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Only look to the latest release to determine the previous tag -- this allows us to skip unsupported tag formats (like `version-1.0.0`)
export PREVIOUS_TAG=`curl --silent "https://api.github.com/repos/$1/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
echo "PREVIOUS_TAG=$PREVIOUS_TAG"

export NEW_TAG=${GITHUB_REF/refs\/tags\//}
echo "NEW_TAG=$NEW_TAG"
export CHANGELOG=`git log $NEW_TAG...$PREVIOUS_TAG --oneline`
Expand Down Expand Up @@ -31,5 +30,6 @@ SEMVER_REGEX="\
# Used in downstream steps to determine if the release should be marked as a "prerelease" and if the build should build candidate release artifacts
export IS_CANDIDATE=`[[ $NEW_TAG =~ $SEMVER_REGEX && ! -z ${BASH_REMATCH[4]} ]] && echo "true" || echo "false"`

# This is the version string we will pass to the build, trim off leading 'v' if present
export RELEASE_VERSION=`[[ $NEW_TAG =~ $SEMVER_REGEX ]] && echo "${NEW_TAG:1}" || echo "${NEW_TAG}"`
echo "RELEASE_VERSION=$RELEASE_VERSION"
25 changes: 15 additions & 10 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
queue_rules:
- name: default
conditions:
- status-success=build

pull_request_rules:
- name: Automatically merge on CI success and review
conditions:
Expand All @@ -6,9 +11,9 @@ pull_request_rules:
- "label=ready to merge"
- "approved-reviews-by=@oss-approvers"
actions:
merge:
queue:
method: squash
strict: smart
name: default
label:
add: ["auto merged"]
- name: Automatically merge release branch changes on CI success and release manager review
Expand All @@ -18,9 +23,9 @@ pull_request_rules:
- "label=ready to merge"
- "approved-reviews-by=@release-managers"
actions:
merge:
queue:
method: squash
strict: smart
name: default
label:
add: ["auto merged"]
# This rule exists to handle release branches that are still building using Travis CI instead of
Expand All @@ -32,9 +37,9 @@ pull_request_rules:
- "label=ready to merge"
- "approved-reviews-by=@release-managers"
actions:
merge:
queue:
method: squash
strict: smart
name: default
label:
add: ["auto merged"]
- name: Automatically merge PRs from maintainers on CI success and review
Expand All @@ -44,9 +49,9 @@ pull_request_rules:
- "label=ready to merge"
- "author=@oss-approvers"
actions:
merge:
queue:
method: squash
strict: smart
name: default
label:
add: ["auto merged"]
- name: Automatically merge autobump PRs on CI success
Expand All @@ -56,9 +61,9 @@ pull_request_rules:
- "label~=autobump-*"
- "author:spinnakerbot"
actions:
merge:
queue:
method: squash
strict: smart
name: default
label:
add: ["auto merged"]
- name: Request reviews for autobump PRs on CI failure
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ allprojects {
}

dependencies {
implementation platform("io.spinnaker.kork:kork-bom:$korkVersion")
implementation enforcedPlatform("io.spinnaker.kork:kork-bom:$korkVersion")
annotationProcessor platform("io.spinnaker.kork:kork-bom:$korkVersion")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testAnnotationProcessor platform("io.spinnaker.kork:kork-bom:$korkVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class AuthConfig {
http
.requestMatcher(requestMatcherProvider.requestMatcher())
.authorizeRequests()
.antMatchers("/error").permitAll()
.antMatchers('/favicon.ico').permitAll()
.antMatchers("/resources/**").permitAll()
.antMatchers("/images/**").permitAll()
.antMatchers("/js/**").permitAll()
Expand Down Expand Up @@ -156,6 +158,8 @@ class AuthConfig {
http
.requestMatcher(requestMatcherProvider.requestMatcher())
.authorizeRequests()
.antMatchers("/error").permitAll()
.antMatchers('/favicon.ico').permitAll()
.antMatchers("/resources/**").permitAll()
.antMatchers("/images/**").permitAll()
.antMatchers("/js/**").permitAll()
Expand Down Expand Up @@ -211,6 +215,8 @@ class AuthConfig {
http
.requestMatcher(requestMatcherProvider.requestMatcher())
.authorizeRequests()
.antMatchers("/error").permitAll()
.antMatchers('/favicon.ico').permitAll()
.antMatchers("/resources/**").permitAll()
.antMatchers("/images/**").permitAll()
.antMatchers("/js/**").permitAll()
Expand Down Expand Up @@ -257,6 +263,8 @@ class AuthConfig {
http
.requestMatcher(requestMatcherProvider.requestMatcher())
.authorizeRequests()
.antMatchers("/error").permitAll()
.antMatchers('/favicon.ico').permitAll()
.antMatchers("/resources/**").permitAll()
.antMatchers("/images/**").permitAll()
.antMatchers("/js/**").permitAll()
Expand Down
Loading