-
Notifications
You must be signed in to change notification settings - Fork 23
ci: fix publish-release workflow indentation and switch to GCP_ARTIFA… #760
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
Conversation
|
So while building the container, the step: |
…server.sh to fix buildx error 100
…icates, add signed-by for Yarn and Postgres
00c3159 to
2c9bd8e
Compare
…to fix build error
…s, add HTTPS support and error handling
…e adding PostgreSQL repo
…at build is working
| touch /var/lib/dpkg/status && \ | ||
| curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
| wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
| mv /home/app/webapp/config/appserver.sh /etc/service/appserver/run && \ | ||
| chmod 777 /etc/service/appserver/run && \ | ||
| echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list && \ | ||
| curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ | ||
| apt-get update && \ |
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.
It's kind of hard for me to review any of the changes in this file, since there are a lot of changes, and it's not exactly clear what issues you were working around. I'm assuming that you were hitting some issues with the Docker image build, where some of the packages were out of date, since that's a common issue we hit every now and then. I'd like to ask you to do the following things:
- Could you split this out into its own PR? That way, if we need to revert the GCP changes, we don't have to also revert the Dockerfile changes, and vice versa
- Could you try making the minimum number of changes necessary to this file? It's a bit of a code smell to me that your changes add 5x the number of lines that there were previously, and even if many of those lines are comments, it still feels like there's probably more happening here than necessary.
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.
Ok will do
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.
Since #763 has merged with an alternative fix, I think you can revert all the changes you made to the Dockerfile now. Once you do that, then I think this PR can probably merge. Thanks again for working on it!
5918a37 to
8e24a14
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.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
.github/workflows/ci.yml
Outdated
| on: | ||
| push: | ||
| branches: [ master ] | ||
| branches: [ master, migrate-to-gcp ] |
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.
Oh, and this is a reminder to go revert this change and all other changes for allowing you to test the actual deploy flow on this branch.
richardxia
left a comment
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.
LGTM
…CT_REGISTRY_KEY
Note
Publishes images to both Docker Hub and Google Artifact Registry in CI and release workflows.
GCP_REPOand configuresgoogle-github-actions/auth+docker/login-actionforus-west2-docker.pkg.devci.ymlpublish-latestto tag/push${DOCKER_REPO}:latestand${GCP_REPO}:latestpublish-release.ymlto generate tags for both${GCP_REPO}and${DOCKER_REPO}and push to both registries.dockerignorerule to excludegha-creds-*.jsonWritten by Cursor Bugbot for commit fad8666. This will update automatically on new commits. Configure here.