All articlesCI/CD

GitHub Actions CI/CD

May 8, 2025 1 min read

A basic pipeline

name: ci
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm test
      - run: docker build -t myrepo/app:${{ github.sha }} .

What to automate

Test on every push, build images on main, and deploy on tags. Keep secrets in repository settings and reference them with secrets..

#GitHub Actions#CI/CD#Docker

Suggested articles