Skip to content

Refactor image building to use committed source and a release workflow#62

Merged
TimHess merged 14 commits into
mainfrom
infra/build-refactor
Jun 12, 2026
Merged

Refactor image building to use committed source and a release workflow#62
TimHess merged 14 commits into
mainfrom
infra/build-refactor

Conversation

@TimHess

@TimHess TimHess commented May 22, 2026

Copy link
Copy Markdown
Member
  • Updates CI workflows to stop pushing release tags on runs for main
  • Adds new release.yml workflow for managing releases
  • Commit generated source code with pinned images and locked dependencies (for reproducible builds)
  • Move initializr-related logic from build.ps1 to update-project.ps1
  • Includes Spring Boot and dependency version bumps
  • Add basic testing for each image
  • Introduce customizations for adding new content as an alternative to .patch files

TimHess added 3 commits May 22, 2026 11:56
- Updates CI workflows to stop pushing release tags on main
- Adds new release.yml workflow for tagged releases
- Commit generated source code (for reproducible builds)
- Move initializr-related logic from build.ps1 to update-project.ps1
- Includes Spring Boot and dependency version bumps
- remove SslTrustConfiguration vestiges
- trim comments and audit variable names
- download gradle-wrapper.jar as-needed in build.ps1
- use a shared workflow for building images
- put all tag and revision logic in release.yaml, drop ADDITIONAL_TAGS
@SteeltoeOSS SteeltoeOSS deleted a comment from github-actions Bot May 26, 2026
@SteeltoeOSS SteeltoeOSS deleted a comment from github-actions Bot May 26, 2026
@SteeltoeOSS SteeltoeOSS deleted a comment from github-actions Bot May 26, 2026
@github-actions

Copy link
Copy Markdown

To run the UAA Server image built for this pull request:

docker run --rm -d --pull=always -p 8080:8080 --name uaa-server-pr steeltoe.azurecr.io/uaa-server:pr-62

@SteeltoeOSS SteeltoeOSS deleted a comment from github-actions Bot May 26, 2026
@github-actions

Copy link
Copy Markdown

To run the Spring Boot Admin Server image built for this pull request:

docker run --rm -d --pull=always -p 9099:9099 --name spring-boot-admin-pr steeltoe.azurecr.io/spring-boot-admin:pr-62

@github-actions

Copy link
Copy Markdown

To run the Spring Cloud Config Server image built for this pull request:

docker run --rm -d --pull=always -p 8888:8888 --name config-server-pr steeltoe.azurecr.io/config-server:pr-62

@github-actions

github-actions Bot commented May 26, 2026

Copy link
Copy Markdown

To run the Spring Cloud Netflix Eureka Server image built for this pull request:

docker run --rm -d --pull=always -p 8761:8761 --name eureka-server-pr steeltoe.azurecr.io/eureka-server:pr-62

TimHess added 7 commits June 3, 2026 17:37
- add smoke tests to release workflow and for UAA
- move port and health check path to metadata files
- include /customizations/ in triggers
- use customization for new file rather than patch (remove potential silent failure condition)
- more consistent PowerShell formatting
- Expand README.md, trim AGENTS.md to agent-specific content
- also clear REVISION when the image version is changing
@TimHess TimHess marked this pull request as ready for review June 4, 2026 22:04
@TimHess TimHess requested a review from bart-vmware June 4, 2026 22:05

@bart-vmware bart-vmware left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial feedback. Great improvements!
Could you please indicate which files are auto-generated and don't need to be reviewed?

Comment thread .github/workflows/build-image.yaml Outdated
Comment thread .github/workflows/build_eureka_server.yaml Outdated
Comment thread .github/workflows/build_config_server.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/build-image.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread config-server/source/build.gradle
Comment thread update-project.ps1
Comment thread update-project.ps1 Outdated
Comment thread update-project.ps1 Outdated
Comment thread update-project.ps1
Comment thread update-project.ps1 Outdated
Comment thread update-project.ps1
Comment thread update-project.ps1 Outdated
Comment thread update-project.ps1
Comment thread update-project.ps1 Outdated
@TimHess

This comment was marked as resolved.

workflows:
- fewer path triggers
- incorporate changes from #61, ensure use of latest major versions of all actions
- update local var casing in workflows, along with step names and order

update script:
- temp_update_$Name -> $imageDirectory/workspace
- $PSNativeCommandUseErrorActionPreference = $true, try/catch instead of $LASTEXITCODE
- logging tweaks
- support space-separated server/dir names in $Names param

Mark **/source/** as generated code
@bart-vmware

This comment was marked as resolved.

Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/release.yaml Outdated
Comment thread .github/workflows/build-image.yaml Outdated
Comment thread update-project.ps1
Comment thread update-project.ps1 Outdated
Comment thread config-server/metadata/IMAGE_VERSION
Comment thread spring-boot-admin/metadata/HEALTH_PATH
Comment thread spring-boot-admin/README.md
Comment thread README.md Outdated
Comment thread README.md
TimHess and others added 2 commits June 10, 2026 09:54
Co-authored-by: Bart Koelman <104792814+bart-vmware@users.noreply.github.com>
- move smoke tests to shareable .ps1
- add param for smoketest with build.ps1
- expand all pwsh ternary usage to full blocks

update-project.ps1
- document usage with multiple specified images
- drop `ValueFromRemainingArguments` usage
- adjust uaa readme header
- throw instead of Write-Error (and dead-code return)
- log if $bomVersionKey wasn't matched in build.gradle
@TimHess TimHess requested a review from bart-vmware June 10, 2026 23:17
Comment thread build.ps1

@bart-vmware bart-vmware left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@TimHess TimHess merged commit c0e8259 into main Jun 12, 2026
4 checks passed
@TimHess TimHess deleted the infra/build-refactor branch June 12, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants