Skip to content

feat: add cd workflow #2

feat: add cd workflow

feat: add cd workflow #2

Workflow file for this run

name: CD
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: build image
run: make build-image
- name: login to registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: push image
run: make push-image