File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 26
26
runs-on : [self-hosted, "${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}"]
27
27
environment : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
28
28
env :
29
+ ENVIRONMENT_NAME : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
29
30
KUBELOGIN_VERSION : " v0.0.25"
30
31
KUBERNETES_CLUSTER_REPO_NAME : " ${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"
31
32
KUBERNETES_CLUSTER_NAME : " ${{ vars.KUBERNETES_CLUSTER_NAME }}"
69
70
shell : bash
70
71
run : |
71
72
bash cicd-deployment-scripts/k8s/db_migrate.sh \
72
- -e ${{ github.ref_name }} \
73
+ -e ${{ env.ENVIRONMENT_NAME }} \
73
74
-d ${{ github.event.repository.name }} \
74
75
-p ${{ github.workspace }}/${{ env.KUBERNETES_CLUSTER_REPO_NAME }} \
75
76
-n ${{ env.KUBERNETES_NAMESPACE }} \
Original file line number Diff line number Diff line change 22
22
esac
23
23
done
24
24
25
+
26
+ echo " ::group::Kubernetes Context"
25
27
kubectl config set-context --current --namespace=$KUBERNETES_NAMESPACE
26
28
echo " Context set to namespace: \" $KUBERNETES_NAMESPACE \" "
29
+ echo " ::endgroup::"
27
30
28
31
echo " ::group::Migrating to revision: $alembic_upgrade_rev "
29
32
Original file line number Diff line number Diff line change 22
22
esac
23
23
done
24
24
25
+ echo " ::group::Kubernetes Context"
25
26
kubectl config set-context --current --namespace=$KUBERNETES_NAMESPACE
26
27
echo " Context set to namespace: \" $KUBERNETES_NAMESPACE \" "
28
+ echo " ::endgroup::"
27
29
28
30
echo " ::group::Migrating to revision: $alembic_downgrade_rev "
29
31
You can’t perform that action at this time.
0 commit comments