Skip to content
Snippets Groups Projects
Select Git revision
  • b23d25a7fd71252805d9ef2c84ad224741b29b83
  • main default protected
  • renovate/main-ghcr.io-renovatebot-base-image-11.x
  • refactor/pin-new-value
  • fix/user-agent
  • feat/37517-base64-private-key
  • next
  • feat/gnupg
  • fix/36615b-branch-reuse-no-cache
  • chore/punycode
  • feat/36219--git-x509-signing
  • feat/structured-logger
  • hotfix/39.264.1
  • feat/skip-dangling
  • gh-readonly-queue/next/pr-36034-7a061c4ca1024a19e2c295d773d9642625d1c2be
  • hotfix/39.238.3
  • refactor/gitlab-auto-approve
  • feat/template-strings
  • gh-readonly-queue/next/pr-35654-137d934242c784e0c45d4b957362214f0eade1d7
  • fix/32307-global-extends-merging
  • fix/32307-global-extends-repositories
  • 41.107.0
  • 41.106.0
  • 41.105.0
  • 41.104.0
  • 41.103.0
  • 41.102.0
  • 41.101.0
  • 41.100.0
  • 41.99.11
  • 41.99.10
  • 41.99.9
  • 41.99.8
  • 41.99.7
  • 41.99.6
  • 41.99.5
  • 41.99.4
  • 41.99.3
  • 41.99.2
  • 41.99.1
  • 41.99.0
41 results

index.ts

Blame
  • package-controller 1.10 KiB
    #!/bin/bash
    set -e
    
    source $(dirname $0)/version
    
    cd $(dirname $0)/..
    
    if [ "$ARCH" != "arm" ]; then
        export DOCKER_BUILDKIT=1
    fi
    
    docker build \
      --build-arg ARCH=${ARCH} \
      --build-arg REPO=${REPO} \
      --build-arg TAG=${TAG} \
      --build-arg VERSION=${VERSION} \
      --file package/Dockerfile \
      --tag ${REPO}/system-upgrade-controller:${TAG} \
      --tag ${REPO}/system-upgrade-controller:latest \
      --target controller \
    .
    
    docker image save --output ./dist/artifacts/system-upgrade-controller-${ARCH}.tar \
      ${REPO}/system-upgrade-controller:${TAG} \
      ${REPO}/system-upgrade-controller:latest
    echo ${REPO}/system-upgrade-controller:${TAG} > ./dist/images.txt
    echo Built ${REPO}/system-upgrade-controller:${TAG}
    
    reset-kustomization() {
      cp -vf /tmp/kustomization.yaml .
    }
    
    if [ "$ARCH" = "amd64" ]; then
      cp kustomization.yaml /tmp/
      trap reset-kustomization EXIT
      kustomize edit set image "rancher/system-upgrade-controller=${REPO}/system-upgrade-controller:${VERSION}"
      kustomize build --reorder=none --output ./dist/artifacts/system-upgrade-controller.yaml
      go run hack/crdgen.go > ./dist/artifacts/crd.yaml
    fi