Skip to content

Commit ce32ea7

Browse files
committed
Merge branch 'main' of github.com:eficode-academy/k8s-edge-infra
2 parents fd90c78 + c2034e8 commit ce32ea7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/docker_build_upgrade_k8s.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'upgrade_edge/Dockerfile'
8+
- 'upgrade_edge/**'
99
pull_request:
1010
branches:
1111
- main
1212
paths:
13-
- 'upgrade_edge/Dockerfile'
13+
- 'upgrade_edge/**'
1414
workflow_dispatch:
1515

1616
jobs:

upgrade_edge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ COPY upgrade_edge/upgrade_edge.sh /opt/upgrade_edge.sh
44

55
RUN chmod +x /opt/upgrade_edge.sh
66

7-
CMD ["/opt/upgrade_edge.sh"]
7+
CMD ["/bin/sh", "/opt/upgrade_edge.sh"]

upgrade_edge/upgrade_edge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#TALOS_VERSION="v1.5.5"
88
#UPGRADE_KUBERENTES="true"
99

10-
if [[ "$UPGRADE_KUBERNETES" == "true" ]] || [[ "$UPGRADE_TALOS" == "true" && -n $TALOS_VERSION ]]; then
10+
if [[ "$UPGRADE_KUBERNETES" != "true" ]] || { [[ "$UPGRADE_TALOS" != "true" ]] && [[ -z "$TALOS_VERSION" ]]; }; then
1111
echo "None of the variables UPGRADE_KUBERNETES or UPGRADE_TALOS has been set to true (true as a string, not a boolean), exiting without any upgrading"
1212
echo $UPGRADE_KUBERENTES
1313
echo $UPGRADE_TALOS
@@ -87,4 +87,4 @@ elif [ "$UPGRADE_KUBERENTES" = "true" ]; then
8787
check_talosctl_version
8888
get_current_k8s_version
8989
upgrade_kubernetes
90-
fi
90+
fi

0 commit comments

Comments
 (0)