Streamline CI/CD pipelines and optimize Docker build context#189
Streamline CI/CD pipelines and optimize Docker build context#189
Conversation
…r build. - Remove `actions/setup-go` and `google-github-actions/auth` from `automation.yml` by forcing mock environment for tests. - Remove `actions/setup-go` from `deployment.yml` by replacing the `cmd/webhook` Go tool with a `curl` command. - Add `.dockerignore` to exclude `.git`, `docs`, `scripts`, `cmd`, etc., from the Docker build context. - Delete `cmd/webhook` directory as the tool is no longer used. - Update `go mod` commands to verify integrity in CI. Co-authored-by: julwrites <18639913+julwrites@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change streamlines the GitHub Actions workflows and the Docker build process.
CI (
automation.yml):GCLOUD_SA_KEY) during unit tests. Tests now run withBIBLE_API_URL="https://example.com"and unsetGCLOUD_PROJECT_ID, forcing the application into mock mode.go mod tidywithgo mod downloadandgo mod verifyto ensure module integrity without modifying files.CD (
deployment.yml):actions/setup-go), which was only needed to run thecmd/webhooktool.cmd/webhooktool execution with a directcurlcommand to the Telegram API to set the webhook URL. This simplifies the pipeline and removes a build dependency.Docker:
.dockerignorefile to exclude unnecessary directories (.git,docs,scripts,cmd,resources) from the build context, speeding up the build and reducing context size.Cleanup:
cmd/webhook/main.goandcmd/webhook/main_test.goas the functionality is now handled by the deployment script.PR created automatically by Jules for task 11018247019302486572 started by @julwrites