Skip to content

Publish examples so they can be reused#41

Merged
velo merged 2 commits intomainfrom
publish
Mar 31, 2025
Merged

Publish examples so they can be reused#41
velo merged 2 commits intomainfrom
publish

Conversation

@velo
Copy link
Copy Markdown
Collaborator

@velo velo commented Mar 26, 2025

ChatGPT did most of the heavy lifting for me

https://chatgpt.com/share/67e43f8d-b7f8-8003-8df2-ffb0d842f6af

@velo velo force-pushed the publish branch 4 times, most recently from 3812f6b to f75ebef Compare March 26, 2025 17:17
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
SQRL_VERSION: 'v0.5.6'

steps:
- uses: actions/checkout@v4
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't get the original workflow building without this step, so I think it never worked before.

@velo velo requested a review from Copilot March 26, 2025 18:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the build workflow to publish and test various SQRL examples, making them reusable by automating Docker image builds, tests, and pushes.

  • Removed manual workflow_dispatch inputs in favor of triggering builds on push to main.
  • Introduced a matrix strategy to parameterize tests and Dockerfile creation for different examples.
  • Added steps for QEMU, Docker Buildx, and Docker Hub login to support multi-platform builds.
Comments suppressed due to low confidence (1)

.github/workflows/build-config.yml:87

  • Consider adding 'set -e' at the start of this command block (or checking the exit status of each docker run call) so that any failure in a test command causes the workflow to fail instead of continuing the loop.
while IFS= read -r cmd; do

Copy link
Copy Markdown
Contributor

@mbroecheler mbroecheler left a comment

Choose a reason for hiding this comment

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

That's really neat. Quite the github magic ;-)

@velo velo merged commit 252259e into main Mar 31, 2025
6 checks passed
@velo velo deleted the publish branch March 31, 2025 22:29
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.

3 participants