Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/isd-sgcu/cutu-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeGoood committed Mar 30, 2024
2 parents f0a3000 + 894c7eb commit 3b8ec0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@ name: 'CD'

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to change to'
default: 'latest'
required: false
type: string

env:
IMAGE_NAME: registry.digitalocean.com/cutu2024/cutu2024-backend

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Set new image tag
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: set image deployment/cutu2024-backend cutu2024-backend=${{ env.IMAGE_NAME }}:${{ inputs.tag }}

- name: Rollout new deployment
uses: actions-hub/kubectl@master
env:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: 'CI'

on:
push:
branches:
- main
workflow_dispatch:
inputs:
tag:
description: 'Image tag'
default: 'latest'
required: false
type: string

env:
IMAGE_NAME: registry.digitalocean.com/cutu2024/cutu2024-backend
Expand Down

0 comments on commit 3b8ec0b

Please sign in to comment.