• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2023 Google LLC
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15################################################################################
16
17_image_prefix() {
18  local -r artifact_registry_url="us-docker.pkg.dev"
19  local -r test_project="tink-test-infrastructure"
20  local -r artifact_registry_repo="tink-ci-images"
21  echo "${artifact_registry_url}/${test_project}/${artifact_registry_repo}"
22}
23
24# Linux container images for Tink Java libraries.
25readonly TINK_JAVA_BASE_IMAGE_NAME="linux-tink-java-base"
26readonly TINK_JAVA_BASE_IMAGE_HASH="8c7e62f2244930bc2c22a5a20d6d8c4df39abff94af06142cce8137d173fc744"
27readonly TINK_JAVA_BASE_IMAGE="$(_image_prefix)/${TINK_JAVA_BASE_IMAGE_NAME}@sha256:${TINK_JAVA_BASE_IMAGE_HASH}"
28
29readonly TINK_JAVA_GCLOUD_IMAGE_NAME="linux-tink-java-gcloud"
30readonly TINK_JAVA_GCLOUD_IMAGE_HASH="c8d60059837693aa17e8cada4fea00da69563a1006375c42a7d0e0511fb1fd82"
31readonly TINK_JAVA_GCLOUD_IMAGE="$(_image_prefix)/${TINK_JAVA_GCLOUD_IMAGE_NAME}@sha256:${TINK_JAVA_GCLOUD_IMAGE_HASH}"
32
33unset -f _image_prefix
34