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

Alessandro/automatically deploy on stage #142

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

alessandrolomanto
Copy link
Collaborator

Description

This PR adds a step to send a webhook for automatic deployment to the staging environment.

Changes

  • Added a conditional check to run the webhook step only when the push event is on the default branch.
  • Created a JSON file temp.json containing the Docker image version information.
  • Merged the existing config.json with temp.json to create combined_config.json.
  • Sent a POST request to the deployment URL using curl with the combined JSON file.

@p0mvn p0mvn merged commit 5f28cda into main Mar 20, 2024
1 of 4 checks passed
@p0mvn p0mvn deleted the alessandro/automatically-deploy-on-stage branch March 20, 2024 03:57
@p0mvn
Copy link
Member

p0mvn commented Mar 20, 2024

Nice work

@p0mvn p0mvn restored the alessandro/automatically-deploy-on-stage branch March 20, 2024 04:04
@p0mvn
Copy link
Member

p0mvn commented Mar 20, 2024

We need to PR this to v23.x

@alessandrolomanto alessandrolomanto deleted the alessandro/automatically-deploy-on-stage branch March 20, 2024 15:55
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