Unverified Commit f65ae7de authored by Pierre Smeyers's avatar Pierre Smeyers Committed by GitLab
Browse files

Merge branch 'patch_cosign' into 'master'

Update configure_cosign_private_key in gitlab-ci-docker.yml file

Closes #146

See merge request to-be-continuous/docker!172
parents 63f6611d c2db5254
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -854,11 +854,11 @@ stages:
  }

  configure_cosign_private_key() {
    if [[ -z ${DOCKER_COSIGN_PRIVATE_KEY:-$COSIGN_PRIVATE_KEY} ]]
    if [[ -z "${DOCKER_COSIGN_PRIVATE_KEY:-$COSIGN_PRIVATE_KEY}" ]]
    then
      fail "Cosign private key is not defined"
    fi
    if [[ -f ${DOCKER_COSIGN_PRIVATE_KEY:-$COSIGN_PRIVATE_KEY} ]]
    if [[ -f "${DOCKER_COSIGN_PRIVATE_KEY:-$COSIGN_PRIVATE_KEY}" ]]
    then
      docker_cosign_private_key=${DOCKER_COSIGN_PRIVATE_KEY:-$COSIGN_PRIVATE_KEY}
    else