Skip to content

Commit

Permalink
feat: cd (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious authored Mar 30, 2024
1 parent e00fce9 commit e26fd58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'CD'

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Rollout new deployment
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout deployment/cutu2024-backend
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:

env:
IMAGE_NAME: registry.digitalocean.com/cutu2024/cutu2024-backend
Expand Down Expand Up @@ -39,6 +40,6 @@ jobs:
with:
push: true
context: "{{defaultContext}}:apps/server"
tags: ${{ env.IMAGE_NAME }}:${{ github.ref_type == 'tag' && github.ref_name || github.sha }},${{ env.IMAGE_NAME }}:latest
tags: ${{ env.IMAGE_NAME }}:latest
cache-from: type=gha,ref=${{ env.IMAGE_NAME }}:buildcache
cache-to: type=gha,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max

0 comments on commit e26fd58

Please sign in to comment.