Add build #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |