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

Add Branch-Specific Key Decoding in GitHub Actions Workflow #238

Merged
merged 4 commits into from
Nov 23, 2023

Conversation

tripledoublev
Copy link
Member

  • Update deploy.yml to decode different keys for staging and production.
  • Implement conditional steps to handle 'staging' and 'master' branches.

- Update deploy.yml to decode different keys for staging and production.
- Implement conditional steps to handle 'staging' and 'master' branches.
- Modified the GitHub Actions workflow to handle key decoding for both direct pushes and pull requests.
- Added conditions to check the target branch (`base_ref`) in PRs, ensuring the correct environment keys are decoded.
…ontext

This commit enhances the GitHub Actions workflow by introducing two key changes:

1. `Set Site URL based on branch`: This update ensures that the main site URL in `_config.yml` is dynamically set to the production URL ("https://hypha.coop") when either pushing to the `master` branch or creating a pull request targeting `master`. This change supports proper environment configuration for production deployments.
2. `Set DP Social URL based on branch`: This addition modifies the `activity_pub` URL in `_config.yml` based on the branch context. For pushes or pull requests targeting the `master` branch, it sets the URL to the production environment (`SOCIAL_DP_PROD`). For the `staging` branch, it uses the staging environment URL (`SOCIAL_DP_STAGING`). This ensures that the correct external service URLs are used for different deployment stages.
Copy link
Contributor

@RangerMauve RangerMauve left a comment

Choose a reason for hiding this comment

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

LGTM!

@tripledoublev tripledoublev merged commit 03e50ad into staging Nov 23, 2023
1 check passed
@tripledoublev tripledoublev deleted the branch-specific-keys branch November 23, 2023 17:01
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