Skip to content

Add build

Add build #4

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Docker build & push to dev
run: |
docker run -v $(pwd):/src klakegg/hugo:alpine --minify
docker buildx build --platform=linux/aarch64 -t docker.sungjunyoung.dev/blog:latest .
docker push docker.sungjunyoung.dev/blog:latest
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout restart deploy blog -n live