Skip to content

Comments

Add worker update script#290

Merged
annehaley merged 2 commits intomasterfrom
update-worker-script
Feb 23, 2026
Merged

Add worker update script#290
annehaley merged 2 commits intomasterfrom
update-worker-script

Conversation

@annehaley
Copy link
Collaborator

No description provided.

@annehaley annehaley requested a review from brianhelba February 19, 2026 17:17
Comment on lines 20 to 21
echo "==> Adding SOURCE_VERSION to env file..."
ssh "$SSH_TARGET" 'echo "SOURCE_VERSION=$(git -C /home/ubuntu/geoinsight rev-parse HEAD)" >> /home/ubuntu/geoinsight.prod.env'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should come after git pull, since we want to inform the application of the SHA of the the Git commit that it'll actually be running after this update.

This variable is ultimately used to feed metadata of Sentry errors.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. Switched the order in 7bbbc1b

Copy link
Collaborator

@brianhelba brianhelba left a comment

Choose a reason for hiding this comment

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

1 essential change, but otherwise LGTM after the lines are switched.

@annehaley annehaley merged commit 912782b into master Feb 23, 2026
3 checks passed
@annehaley annehaley deleted the update-worker-script branch February 23, 2026 18:58
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