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..