Skip to content

fix:Potential fix for code scanning alert no. 47#11

Merged
Dargon789 merged 14 commits intocircleci-project-setupfrom
master
Jul 4, 2025
Merged

fix:Potential fix for code scanning alert no. 47#11
Dargon789 merged 14 commits intocircleci-project-setupfrom
master

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Jul 4, 2025

Summary by Sourcery

Add CI/CD configuration templates for GitHub Actions and CircleCI to support diverse deployment targets.

CI:

  • Add GitHub Actions workflow for building and deploying Docker images to Google Kubernetes Engine.
  • Add GitHub Actions workflow for building and deploying via Octopus Deploy.
  • Add GitHub Actions workflows for deploying Jekyll sites and static content to GitHub Pages.
  • Add GitHub Actions workflow for Docker image continuous integration.
  • Add CircleCI configuration with a sample "hello world" job.

Dargon789 and others added 14 commits July 3, 2025 23:10
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>
…o v23.3.0 (#8)

* ops: Add more mempool servers to elements.conf

* ops: Bump elements to v23.3.0

---------

Co-authored-by: wiz <j@wiz.biz>
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
Copy link

sourcery-ai bot commented Jul 4, 2025

Reviewer's Guide

This PR introduces a set of new CI/CD workflows—covering Google GKE deployments, Octopus Deploy pipelines, GitHub Pages publishing, a CircleCI job, and a Docker image build pipeline—to streamline automated builds, scans, and deployments.

Flow diagram for Google GKE deployment workflow

flowchart TD
  Checkout[Checkout Code]
  Auth[Authenticate to Google Cloud]
  DockerAuth[Docker Auth to Artifact Registry]
  GKECreds[Set up GKE Credentials]
  BuildPush[Build and Push Docker Image]
  Kustomize[Set up Kustomize]
  Deploy[Deploy to GKE]

  Checkout --> Auth --> DockerAuth --> GKECreds --> BuildPush --> Kustomize --> Deploy
Loading

Flow diagram for Octopus Deploy workflow

flowchart TD
  Checkout[Checkout Code]
  Buildx[Set up Docker Buildx]
  Login[Log in to Container Registry]
  Meta[Extract Docker Metadata]
  BuildPush[Build and Push Docker Image]
  OctoLogin[Log in to Octopus Deploy]
  CreateRelease[Create Release]
  DeployRelease[Deploy Release]

  Checkout --> Buildx --> Login --> Meta --> BuildPush
  BuildPush --> OctoLogin --> CreateRelease --> DeployRelease
Loading

Flow diagram for GitHub Pages Jekyll deployment

flowchart TD
  Checkout[Checkout Code]
  SetupPages[Setup Pages]
  BuildJekyll[Build with Jekyll]
  Upload[Upload Artifact]
  Deploy[Deploy to GitHub Pages]

  Checkout --> SetupPages --> BuildJekyll --> Upload --> Deploy
Loading

Flow diagram for static content deployment to GitHub Pages

flowchart TD
  Checkout[Checkout Code]
  SetupPages[Setup Pages]
  Upload[Upload Artifact]
  Deploy[Deploy to GitHub Pages]

  Checkout --> SetupPages --> Upload --> Deploy
Loading

Flow diagram for CircleCI 'Say Hello' job

flowchart TD
  Checkout[Checkout Code]
  SayHello[Run 'Say hello']

  Checkout --> SayHello
Loading

File-Level Changes

Change Details Files
Introduce Google Cloud build-and-deploy workflow
  • Add AWS-like Workload Identity Federation for GitHub
  • Configure Docker Auth and Artifact Registry push
  • Set up GKE credentials and kubectl-based deployment
  • Integrate kustomize to update and apply Kubernetes manifests
.github/workflows/google.yml
Add Octopus Deploy pipeline
  • Set up Docker Buildx and registry login
  • Extract and tag metadata for Docker images
  • Push built images and output image tag
  • Log in to Octopus, create and deploy release via Octopus Actions
.github/workflows/octopusdeploy.yml
Configure GitHub Pages deployments
  • Add Jekyll build workflow with pages artifact upload
  • Add static content deploy workflow
  • Configure permissions and concurrency for safe Pages updates
.github/workflows/jekyll-gh-pages.yml
.github/workflows/static.yml
Introduce basic CircleCI job
  • Define version and docker executor
  • Add a sample 'say-hello' job with checkout and run steps
  • Orchestrate job in a workflow
.circleci/config.yml
Add Docker Image CI workflow
  • Trigger on pushes and pull requests to master
  • Check out 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 merged commit 7823204 into circleci-project-setup Jul 4, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant