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

Swarm stack updater needs a new github access token every year. #10

Open
Yamboy1 opened this issue Dec 18, 2023 · 1 comment
Open

Swarm stack updater needs a new github access token every year. #10

Yamboy1 opened this issue Dec 18, 2023 · 1 comment
Assignees

Comments

@Yamboy1
Copy link

Yamboy1 commented Dec 18, 2023

COMMIT_SHA=$(jq -n --slurpfile data commits.json '$data[][] | select(.author.type == "User")' | jq -r -s 'first | .sha')

This is the relevant line, it seems like authorisation might be wrong or expired.

@jimbonothing64
Copy link

Thanks for all your help with this!

To fix, will be yearly:

  • Create a new github access key (they only last upto 1 year :()
  • SSH into dev-swarm-m1
  • Create a new docker secret github_access_token _{n}, where n is the next number (docker secret ls to see existing)
  • Lastly run: docker service update --secret-rm github_access_token_{n-1} --secret-add src=github_access_token_{n},target=github_access_token swarm_updater_swarm-stack-updater

@jimbonothing64 jimbonothing64 changed the title Swarm stack updater has not been working for a while, and this means all of the development websites aren't updating now. Swarm stack updater needs a new github access token every year. Dec 19, 2023
@jimbonothing64 jimbonothing64 pinned this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants