Skip to content

Circleci project setup - #19

Closed
Dargon789 wants to merge 10 commits into
masterfrom
circleci-project-setup
Closed

Circleci project setup#19
Dargon789 wants to merge 10 commits into
masterfrom
circleci-project-setup

Conversation

@Dargon789

@Dargon789 Dargon789 commented Jul 5, 2025

Copy link
Copy Markdown
Owner

Summary by Sourcery

Establish multi-platform CI/CD pipelines by adding GitHub Actions and CircleCI workflows for Docker image building and deployments to GKE, Octopus Deploy, and GitHub Pages.

New Features:

  • Introduce GitHub Actions workflow to build and deploy Docker images to Google Kubernetes Engine via Workload Identity Federation
  • Add GitHub Actions workflow to build and publish Docker images and deploy releases through Octopus Deploy
  • Add GitHub Actions workflows to build and deploy a Jekyll site and static content to GitHub Pages
  • Add GitHub Actions workflow for continuous Docker image builds on push and pull requests
  • Add CircleCI configuration with a sample job and workflow

Dargon789 and others added 10 commits July 3, 2025 22:29
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
@sourcery-ai

sourcery-ai Bot commented Jul 5, 2025

Copy link
Copy Markdown

Reviewer's Guide

Introduce CI/CD project setup by adding multiple new workflow configurations: GitHub Actions for GKE, Octopus Deploy, Jekyll and static site GitHub Pages deployments, a Docker Image CI workflow, and a sample CircleCI pipeline.

Flow diagram for GitHub Actions GKE deployment workflow

flowchart TD
  A[Push to master branch] --> B[Authenticate to Google Cloud]
  B --> C[Docker Auth to Artifact Registry]
  C --> D[Get GKE credentials]
  D --> E[Build and push Docker image]
  E --> F[Set up Kustomize]
  F --> G[Deploy to GKE]
  G --> H[Check rollout status]
  H --> I[Get services]
Loading

Flow diagram for GitHub Actions Octopus Deploy workflow

flowchart TD
  A[Push to master branch] --> B[Build job]
  B --> C[Build and push Docker image]
  C --> D[Deploy job]
  D --> E[Log in to Octopus Deploy]
  E --> F[Create Release]
  F --> G[Deploy Release]
Loading

Flow diagram for GitHub Actions Jekyll Pages deployment

flowchart TD
  A[Push to main branch] --> B[Build job]
  B --> C[Checkout]
  C --> D[Setup Pages]
  D --> E[Build with Jekyll]
  E --> F[Upload artifact]
  F --> G[Deploy job]
  G --> H[Deploy to GitHub Pages]
Loading

Flow diagram for GitHub Actions static site Pages deployment

flowchart TD
  A[Push to master branch] --> B[Deploy job]
  B --> C[Checkout]
  C --> D[Setup Pages]
  D --> E[Upload artifact]
  E --> F[Deploy to GitHub Pages]
Loading

File-Level Changes

Change Details Files
Add GitHub Actions workflow to build and deploy Docker images to GKE
  • Define environment variables for Google Cloud project, registry, and cluster
  • Authenticate via Workload Identity, build and push Docker image, and deploy using kustomize
.github/workflows/google.yml
Add GitHub Actions workflow to build Docker image and deploy through Octopus Deploy
  • Separate build and deploy jobs with metadata extraction and registry login
  • Use OctopusDeploy actions to create a release and trigger deployment
.github/workflows/octopusdeploy.yml
Add GitHub Actions workflow for Jekyll site deployment to GitHub Pages
  • Configure pages permissions, concurrency, and manual dispatch
  • Build site with Jekyll and upload artifact for deployment
.github/workflows/jekyll-gh-pages.yml
Add GitHub Actions workflow for static content deployment to GitHub Pages
  • Set up pages permissions and concurrency controls
  • Checkout code, upload entire repo as artifact, and deploy
.github/workflows/static.yml
Add CircleCI configuration with a sample job
  • Define a docker executor job that checks out code and echoes a message
  • Orchestrate job execution using a workflow
.circleci/config.yml
Add GitHub Actions workflow for Docker Image CI
  • Trigger on push and pull_request to master
  • Checkout code and build Docker image with timestamp tag
.github/workflows/docker-image.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@Dargon789
Dargon789 enabled auto-merge July 5, 2025 06:01

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Dargon789 - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Dargon789 Dargon789 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circleci project setup #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant