Add CI #13

Merged
snedadah merged 36 commits from shahanneda/add-ci into main 5 months ago
Owner

Added a CI to a staging server.

  • Setup drone to run relevant linting/building scripts
  • Drone creates docker images, uploads them to harbour (CSC docker image reposirotry)
  • Drone calls server webhook
  • Server deploys using kubernetes on CSCCloud
  • Server repo is here: link, I think it makes sense to have it be a separate repo, since it is deployed completely seperately, and I want to be able to make quick changes to it without changing the class profile repo. Let me know if you think I should move it.
    image

(about the number of commits, I realized too late that I should probably do the test runs in another branch 😓)

Added a CI to a staging server. - Setup drone to run relevant linting/building scripts - Drone creates docker images, uploads them to harbour (CSC docker image reposirotry) - Drone calls server webhook - Server deploys using kubernetes on CSCCloud - Server repo is here: [link](https://git.csclub.uwaterloo.ca/snedadah/csc-webhooks), I think it makes sense to have it be a separate repo, since it is deployed completely seperately, and I want to be able to make quick changes to it without changing the class profile repo. Let me know if you think I should move it. ![image](/attachments/2986f565-611e-4e81-8091-639fcfd6900d) (about the number of commits, I realized too late that I should probably do the test runs in another branch :sweat:)
snedadah added 28 commits 6 months ago
a8a2283dfd
added .drone.yml with staging deployement
6939c73814
changed registry
30d9eed4a0
updated repo
6a9c4016c3
test
0f830efee0
Test
cd6673b1bf
test
95dcbf4d7c
test
ce345c8441
added webhook
e9f35eaca5
fixed typo
0949f37142
Reran test
787aecba1c
reran test
36961ad6e6
test
62db9d8ad0
test
ca221a2282
changed ref
213c8f5756
Chagned ref
f73aa6ca95
test
09d71776b4
Changed ref
d20c28f35a
rebuild test
0d9dc49167
rebuild test
a03f4519e9
Added logging
5fb3b90031
Udate log
0af1cbc614
Added auth
f5470f5596
fix typo
6ed1ace6cb
Updated docs and secret naming
3f855bb634
Updated docs
5c02596938
Updated url preview
snedadah added 1 commit 6 months ago
snedadah added 1 commit 6 months ago
f36ce140ca
Updated docs
snedadah added 1 commit 6 months ago
64c9c57ad7
Debug docker
snedadah added 1 commit 6 months ago
c7e5fb59b2
Reverted debug
snedadah added 1 commit 6 months ago
2a03276419
test change
snedadah added 1 commit 5 months ago
540132bfd4
Reverted changes
snedadah added 1 commit 5 months ago
3396de157a
Updated docs
snedadah changed title from WIP: Add CI to Add CI 5 months ago
snedadah requested review from n3parikh 5 months ago
snedadah requested review from a3thakra 5 months ago
snedadah requested review from a258wang 5 months ago
a258wang approved these changes 5 months ago
a258wang left a comment
Owner

Thanks for setting this up, Shahan!

Thanks for setting this up, Shahan!
a3thakra reviewed 5 months ago
- name: view-staging-url
image: node:16
commands:
- echo "staging url will be https://${DRONE_BRANCH//\//-}-csc-class-profile-staging-snedadah.k8s.csclub.cloud"
Collaborator

this is not going to work if the branch name is something like: "adi/feature/cool-thing"

this is not going to work if the branch name is something like: "adi/feature/cool-thing"
Poster
Owner

Just tried it, it does seem to work, I think the regex is automatically global.

Just tried it, it does seem to work, I think the regex is automatically global.
snedadah added 1 commit 5 months ago
8589c0bc3a
updated docs
snedadah merged commit 67aa21fd65 into main 5 months ago
snedadah referenced this issue from a commit 5 months ago

Reviewers

n3parikh was requested for review 5 months ago
a3thakra was requested for review 5 months ago
a258wang approved these changes 5 months ago
continuous-integration/drone/push Build is passing
The pull request has been merged as 67aa21fd65.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: www/cs-2022-class-profile#13
Loading…
There is no content yet.