Skip to content

Commit

Permalink
Add self-hosted runner actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjunyoung committed Mar 2, 2024
1 parent 31045d9 commit 6960873
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/image-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-push-image:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Docker build & push to dev
if: contains(github.ref, 'develop')
run: |
docker build --platform=linux/aarch64 -t docker.sungjunyoung.dev/blog:latest .
docker push docker.sungjunyoung.dev/blog:latest
deploy:
runs-on: self-hosted
steps:
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout restart deploy blog -n live

0 comments on commit 6960873

Please sign in to comment.