update
This commit is contained in:
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -9,9 +9,14 @@ on:
|
||||
app-target:
|
||||
required: true
|
||||
type: string
|
||||
registry:
|
||||
# REGISTRY:
|
||||
# required: true
|
||||
# k8s-config:
|
||||
# required: true
|
||||
secrets:
|
||||
REGISTRY:
|
||||
required: true
|
||||
k8s-config:
|
||||
K8S_DEV:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
@@ -31,6 +36,6 @@ jobs:
|
||||
mv kubectl /usr/local/bin/
|
||||
cd ~
|
||||
mkdir .kube
|
||||
echo "$CONFIG" > .kube/config
|
||||
echo "$K8S_DEV" > .kube/config
|
||||
kubectl set image deployment/$APP $APPTARGET=$REGISTRY:$GITHUB_SHA
|
||||
kubectl rollout restart deployment/$app
|
||||
|
||||
Reference in New Issue
Block a user