feat: simplify variables
This commit is contained in:
parent
1e26bc1631
commit
31fc935e0a
@ -14,8 +14,6 @@ runs:
|
||||
- name: k8sdeploy
|
||||
run: ${{ gitea.action_path }}/k8sdeploy.sh
|
||||
env:
|
||||
ACTION_REPO: ${{ gitea.repository }}
|
||||
ACTION_REF_NAME: ${{ gitea.ref_name }}
|
||||
ACTION_KUBECONFIG: ${{ inputs.kubeconfig }}
|
||||
ACTION_REGISTRY_USERNAME: ${{ inputs.registry_username }}
|
||||
ACTION_REGISTRY_PASSWORD: ${{ inputs.registry_password }}
|
||||
|
@ -6,7 +6,7 @@ set -a
|
||||
set +a
|
||||
|
||||
REGISTRY="${IMAGEAPP%%/*}"
|
||||
NS="${ACTION_REPO#*/}-${ACTION_REF_NAME}"
|
||||
NS="${GITHUB_REPOSITORY#*/}-${GITHUB_REF_NAME}"
|
||||
|
||||
mkdir -p "$HOME/.kube/"
|
||||
echo "$ACTION_KUBECONFIG" > "$HOME/.kube/config"
|
||||
@ -21,7 +21,7 @@ if [ -n "$ACTION_REGISTRY_PASSWORD" ]; then
|
||||
--docker-password="$ACTION_REGISTRY_PASSWORD"
|
||||
fi
|
||||
|
||||
if [ "$ACTION_REF_NAME" == prod ] || [ "$ACTION_REF_NAME" == staging ]; then
|
||||
if [ "$GITHUB_REF_NAME" == prod ] || [ "$GITHUB_REF_NAME" == staging ]; then
|
||||
./manifests/bin/prod.sh
|
||||
else
|
||||
./manifests/bin/devel.sh
|
||||
|
Loading…
Reference in New Issue
Block a user