feat: simplify variables

This commit is contained in:
ange 2024-05-02 17:27:39 +02:00
parent 1e26bc1631
commit 31fc935e0a
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 2 additions and 4 deletions

View File

@ -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 }}

View File

@ -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