update identifier to tag
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
app-target:
|
||||
required: true
|
||||
type: string
|
||||
identifier:
|
||||
image-tag:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
REGISTRY: ${{ secrets.REGISTRY }}
|
||||
APP: ${{ inputs.app-name }}
|
||||
APPTARGET: ${{inputs.app-target}}
|
||||
IDENTIFIER: ${{inputs.identifier}}
|
||||
TAG: ${{inputs.image-tag}}
|
||||
run: |
|
||||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
|
||||
chmod +x kubectl
|
||||
@@ -37,5 +37,5 @@ jobs:
|
||||
cd ~
|
||||
mkdir .kube
|
||||
echo "$K8S_CONFIG" > .kube/config
|
||||
kubectl set image deployment/$APP $APPTARGET=$REGISTRY:$IDENTIFIER
|
||||
kubectl set image deployment/$APP $APPTARGET=$REGISTRY:$TAG
|
||||
kubectl rollout restart deployment/$APP
|
||||
|
||||
Reference in New Issue
Block a user