Skip to content
Snippets Groups Projects
Select Git revision
  • 4a643535e6ea8f67ac00961ed1d242fce16ce748
  • master default protected
  • dependabot/go_modules/pkg/apis/golang.org/x/net-0.38.0
  • enable_fossa
  • release-0.7
  • v0.16.0 protected
  • v0.15.3 protected
  • v0.15.2 protected
  • v0.15.1 protected
  • v0.15.0 protected
  • v0.15.0-rc2 protected
  • v0.15.0-rc1 protected
  • v0.14.2 protected
  • v0.14.1 protected
  • v0.14.0 protected
  • v0.14.0-rc4 protected
  • v0.14.0-rc3 protected
  • v0.14.0-rc2 protected
  • v0.14.0-rc1 protected
  • v0.13.4 protected
  • v0.13.3 protected
  • v0.13.2 protected
  • v0.13.1 protected
  • v0.13.0 protected
  • v0.12.0 protected
25 results

main.go

Blame
  • build 678 B
    #!/bin/bash
    set -ex
    
    # Extract arch repo from a docker tag suffix
    REPO=""
    case "$DOCKER_TAG" in
        *amd64)
            REPO="library"
            ;;
        *arm32v5)
            REPO="arm32v5"
            ;;
        *arm32v6)
            REPO="arm32v6"
            ;;
        *arm32v7)
            REPO="arm32v7"
            ;;
        *arm64v8)
            REPO="arm64v8"
            ;;
        *i386)
            REPO="i386"
            ;;
        *ppc64le)
            REPO="ppc64le"
            ;;
        *s390x)
            REPO="s390x"
            ;;
        *)
            REPO="library"
            ;;
    esac
    
    docker build \
        --build-arg REPO="$REPO" \
        --build-arg VCS_REF="$GIT_SHA1" \
        --build-arg BUILD_DATE="$(date --rfc-3339 ns)" \
        --tag "$IMAGE_NAME" .