Skip to content

feat(examples): Add GitHub Action to update Outpost version in compose.yml #365

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

leggetter
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 9, 2025 08:58
Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
outpost-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 9, 2025 8:58am
outpost-website 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 9, 2025 8:58am

@leggetter leggetter merged commit df0cb04 into main May 9, 2025
1 of 3 checks passed
@leggetter leggetter deleted the chore/bump-examples-docker branch May 9, 2025 08:59
Copy link
Contributor

@Copilot 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 introduces a GitHub Action workflow to automatically update the Outpost version in the compose.yml file when a release is published or manually triggered.

  • Adds a new workflow file to handle version determination and compose file updates
  • Automates the process of committing changes and creating a pull request via the GitHub CLI

VERSION_TO_USE="${{ steps.get_version.outputs.version_tag }}"
echo "Updating compose.yml with version: $VERSION_TO_USE"
# Using a temporary file for sed to avoid issues with in-place editing on different sed versions
sed "s|hookdeck/outpost:v[0-9]\+\.[0-9]\+\.[0-9]\+\(-[a-zA-Z0-9.]\+\)\?|hookdeck/outpost:v${VERSION_TO_USE}|g" examples/docker-compose/compose.yml > examples/docker-compose/compose.yml.tmp
Copy link
Preview

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using the '-E' flag with sed to enable extended regular expressions explicitly, which can improve readability and ensure compatibility across different environments.

Suggested change
sed "s|hookdeck/outpost:v[0-9]\+\.[0-9]\+\.[0-9]\+\(-[a-zA-Z0-9.]\+\)\?|hookdeck/outpost:v${VERSION_TO_USE}|g" examples/docker-compose/compose.yml > examples/docker-compose/compose.yml.tmp
sed -E "s|hookdeck/outpost:v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?|hookdeck/outpost:v${VERSION_TO_USE}|g" examples/docker-compose/compose.yml > examples/docker-compose/compose.yml.tmp

Copilot uses AI. Check for mistakes.

@leggetter leggetter restored the chore/bump-examples-docker branch May 9, 2025 09:01
@vercel vercel bot temporarily deployed to Preview – outpost-website May 9, 2025 09:01 Inactive
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.

1 participant