#!/bin/bash # # Copyright (c) 2021 The Flatcar Maintainers. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script will update an SDK container image and create a new minor version. set -eu cd $(dirname "$0") source sdk_lib/sdk_container_common.sh os_version="$(get_version_from_versionfile)" base_sdk_version="$(get_sdk_version_from_versionfile)" base_sdk_version="$(vernum_to_docker_image_version "${base_sdk_version}")" new_sdk_version="" keep="false" cleanup="" usage() { echo " $0 - Update SDK container image." echo " Create a new container image based on the current SDK ($base_sdk_version)" echo " with current changes from coreos-overlay and portage-stable." echo echo " Just like build_sdk_container_image the resulting container comes in 3 flavours:" echo " 1. flatcar-sdk-all - includes both ARM64 and AMD64 support" echo " 2.+3. flatcar-sdk-(amd64|arm64) - only includes support for one target." echo " Usage:" echo " $0 [-k] [-x