Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

CI/CD Pipeline in 5 Minutes

25. 06. 2021 1 min read intermediate

CI/CD doesn’t have to be complicated. Here is a working pipeline in 5 minutes.

GitHub Actions — Basic Workflow

CI/CD Pipeline in 5 Minutes

name: CI on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 20 } - run: npm ci - run: npm test - run: npm run build

Docker Build + Push

build: needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: docker/build-push-action@v5 with: push: true tags: ghcr.io/${{ github.repository }}:${{ github.sha }}

Deploy

deploy: needs: build if: github.ref == ‘refs/heads/main’ runs-on: ubuntu-latest steps: - run: kubectl set image deployment/app app=ghcr.io/$REPO:$SHA

Secrets

Settings → Secrets → New repository secret

Usage: ${{ secrets.KUBE_CONFIG }}

Caching

  • uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles(‘package-lock.json’) }}

That’s It

5 files, 5 minutes. Push → test → build → deploy. Extend gradually.

ci/cddevopsgithub actions
Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.