-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix: auto deploy on push issue #917
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the auto deploy should work for stage and test, it need to be fixed not removed .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error i think is in this step called: copy-deployment-config
the deploy.yml file does not copy the configs from the good environment and this is because of the line, because inputs.environment is not set in the push
run: cp -r deploy_config/ontoportal_web_ui/${{ inputs.environment }}/* . |
echo "TARGET=${USER_INPUT_ENVIRONMENT:-staging}" >> $GITHUB_ENV | ||
# Set default environment for push events | ||
if [ "${{ github.event_name }}" = "push" ]; then | ||
TARGET="staging" # Default to staging for push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't default push into stage, it need to check the current pushed branch and depending on it decide where to push
Context
While reviewing the deployment workflow, I noticed that deployment on push is enabled, but it is currently not working. After checking the logs, I found the following error preventing the deployment:
![image](https://private-user-images.githubusercontent.com/61744974/403368689-6772e5a4-b021-4b6a-bde1-f9ff39cdbc5a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzM2MDMsIm5iZiI6MTczOTIzMzMwMywicGF0aCI6Ii82MTc0NDk3NC80MDMzNjg2ODktNjc3MmU1YTQtYjAyMS00YjZhLWJkZTEtZjlmZjM5Y2RiYzVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAwMjE0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkMjM4OGRlZmZjYTY5NGNlMmNlOTU0MDNkNTZmYzQzOGQ4ZGQ4MWRlNjMwYzY4ODM5Mzc0NWUwYTI4NTU1NzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Nk6LbVrD04oP9ynU7ALE1bL522CVlSo1zmuiphZ1bOs)
Changes