-
Notifications
You must be signed in to change notification settings - Fork 0
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
ci: trigger GitLab deployment pipeline when pushing #186
Conversation
d223da7
to
3012f24
Compare
88f28df
to
413b54d
Compare
414f54d
to
8e1a867
Compare
I'd be willing to speak about the process live! I think having the job run after the |
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.
Looks nice! Does it work? Is there any way to test it before it's merged in prod?
Makes sense. Just updated so that the "deploy" job runs after the "publish" job and depends on it. LMKWYT! |
95e0156
to
f3e1dfd
Compare
6cea369
to
781a39d
Compare
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.
🚀 I will let @jordanguedj approve but it seems readable to me! Great job!
46ccf70
to
fd4307a
Compare
b843711
to
c67725f
Compare
9ba1428
to
294501c
Compare
…t work for publishing on PyPi" This reverts commit afdb726.
eb91085
to
80b6f66
Compare
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.
Thanks for this!
However, even if we don't want to run this pipeline for another environment than dev
(for now), this version of .circleci/config.yml
will only and always apply to dev
(dev
environment shouldn't be hard-coded). IMO, we should have something dynamic and ready to handle other environments.
50f77b9
to
0672e79
Compare
…#3232) Similar to datagouv/hydra#186 on Hydra, this PR adds automatic deployment by triggering GitLab infra CI through the `simple-scaffolding` script. - Add job `trigger-gitlab-pipeline` using `simple-scaffolding` deploy script - Add CI parameters `python-version`, `publish-branch` and `deploy-env` - Build the version number in build job and persists it in a file to be used by `trigger-gitlab-pipeline` - Split the build job into smaller, more explicit steps for better debugging and readability - Rename workflow to avoid confusion with building job and to be more explicit This CI needs: - `SCAFFOLD_PRIVATE_KEY` to be created and added [x] private one to be added as CircleCI env [x] public one to be added on simple-scaffold GitLab repo - `GITLAB_API_TOKEN` to be created and added [x] on GitLab infra API tokens [x] on CircleCI env
…#632) Similar to datagouv/hydra#186 on Hydra, this PR adds automatic deployment by triggering GitLab infra CI through the simple-scaffolding script. - Add `trigger-gitlab-pipeline` job using `simple-scaffolding` deploy script and the existing `$BUILDNO` var - Add CI parameters `publish-branch` and `deploy-env`
Closes datagouv/data.gouv.fr#1465.
Goes hand-to-hand with the GitLab MR.
For now, the trigger is sent only when we push on
main
.We can imagine other policies?
EDIT:
Refactored entirely to use the GitLab scaffolding deploy script repository instead, as the intermediary between this CI and GitLab API for infra repo CI.
Remarks: