Skip to content

Implement GitHub Actions workflows for build, publish, and cleanup pr…#244

Merged
chrira merged 12 commits intomainfrom
241-task-integrate-dagger-techlabs-cicd-pipeline
Jul 17, 2025
Merged

Implement GitHub Actions workflows for build, publish, and cleanup pr…#244
chrira merged 12 commits intomainfrom
241-task-integrate-dagger-techlabs-cicd-pipeline

Conversation

@immxmmi
Copy link
Contributor

@immxmmi immxmmi commented Jul 10, 2025

…ocesses

@immxmmi immxmmi requested review from chrira and Copilot July 10, 2025 19:13
@immxmmi immxmmi self-assigned this Jul 10, 2025
@immxmmi immxmmi linked an issue Jul 10, 2025 that may be closed by this pull request
4 tasks
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a suite of shell scripts and corresponding GitHub Actions workflows to manage building, signing, publishing, and cleaning up training application images and environments.

  • Add reusable shell scripts for cosign verification, Helm deploy/remove, Kubernetes rollout, kubeconfig creation, and registry cleanup
  • Introduce a unified build-and-publish.yaml workflow that builds, signs, verifies, deploys, and comments on PR environments
  • Implement a pr-cleanup.yaml workflow to tear down PR environments and clean up container registry artifacts

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/verify_cosign.sh New script to verify image signatures via Sigstore cosign
scripts/remove_helm_release.sh New script to uninstall Helm releases for PR environment cleanup
scripts/redeploy_deployment.sh New script to trigger Kubernetes deployment rollouts
scripts/deploy_helm_release.sh New script to install/upgrade Helm releases
scripts/create_kubeconfig.sh New script to write KUBECONFIG from env var
scripts/cleanup_registry.sh New script to delete tagged/untagged package versions via GH API
.github/workflows/pr-cleanup.yaml Workflow to remove Helm release and registry tags on PR close
.github/workflows/build-and-publish.yaml Consolidated workflow for building, signing, deploying, commenting
Comments suppressed due to low confidence (4)

.github/workflows/pr-cleanup.yaml:14

  • Using single quotes prevents $HOME from expanding; remove quotes or use double quotes (e.g., "$HOME/.kube") so the path resolves correctly.
      KUBE_CONFIG_PATH: '$HOME/.kube'

scripts/remove_helm_release.sh:5

  • [nitpick] Other scripts use the HELM_RELEASE variable without the TRAINING_ prefix; consider unifying on a single variable name for consistency across scripts.
: "${TRAINING_HELM_RELEASE:?Missing release name}"

.github/workflows/pr-cleanup.yaml:18

  • Pin actions to a specific commit SHA rather than a floating tag for reproducible builds and to avoid unintentional upgrades.
        uses: actions/checkout@v4

.github/workflows/build-and-publish.yaml:156

  • Using latest can introduce unexpected changes; pin the Helm version to a known value for stability.
          version: 'latest'

@github-actions
Copy link

github-actions bot commented Jul 10, 2025

🚀 PR Environment: Open Deployment
🏷️ Image Tag: ghcr.io/puzzle/gitlab-ci-cd-training:pr-244
🖋️ Image Digest: sha256:b118a0615d221361c5c2cae02604cf7d14d52119c9a652a697d739ee9259fc83

@chrira chrira force-pushed the 241-task-integrate-dagger-techlabs-cicd-pipeline branch from 2329551 to 94064ba Compare July 15, 2025 06:02
@immxmmi immxmmi marked this pull request as ready for review July 15, 2025 08:24
Copy link
Member

@chrira chrira left a comment

Choose a reason for hiding this comment

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

lgtm

@chrira chrira force-pushed the 241-task-integrate-dagger-techlabs-cicd-pipeline branch from aae13aa to 2a442aa Compare July 17, 2025 07:25
Copy link
Member

@chrira chrira left a comment

Choose a reason for hiding this comment

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

nice

@chrira chrira merged commit 21af1f6 into main Jul 17, 2025
6 checks passed
@chrira chrira deleted the 241-task-integrate-dagger-techlabs-cicd-pipeline branch July 17, 2025 08:12
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.

📌 Task: 🔧 Integrate Dagger Techlab’s CI/CD pipeline

3 participants