Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eficode-academy/k8s-edge-infra
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrr committed Jan 29, 2024
2 parents fd90c78 + c2034e8 commit ce32ea7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_build_upgrade_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
branches:
- main
paths:
- 'upgrade_edge/Dockerfile'
- 'upgrade_edge/**'
pull_request:
branches:
- main
paths:
- 'upgrade_edge/Dockerfile'
- 'upgrade_edge/**'
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion upgrade_edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ COPY upgrade_edge/upgrade_edge.sh /opt/upgrade_edge.sh

RUN chmod +x /opt/upgrade_edge.sh

CMD ["/opt/upgrade_edge.sh"]
CMD ["/bin/sh", "/opt/upgrade_edge.sh"]
4 changes: 2 additions & 2 deletions upgrade_edge/upgrade_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#TALOS_VERSION="v1.5.5"
#UPGRADE_KUBERENTES="true"

if [[ "$UPGRADE_KUBERNETES" == "true" ]] || [[ "$UPGRADE_TALOS" == "true" && -n $TALOS_VERSION ]]; then
if [[ "$UPGRADE_KUBERNETES" != "true" ]] || { [[ "$UPGRADE_TALOS" != "true" ]] && [[ -z "$TALOS_VERSION" ]]; }; then
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"
echo $UPGRADE_KUBERENTES
echo $UPGRADE_TALOS
Expand Down Expand Up @@ -87,4 +87,4 @@ elif [ "$UPGRADE_KUBERENTES" = "true" ]; then
check_talosctl_version
get_current_k8s_version
upgrade_kubernetes
fi
fi

0 comments on commit ce32ea7

Please sign in to comment.