# Copyright 2024 Google LLC
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


cloudbuild:
  docker_image: gcr.io/cloud-builders/docker:24.0.9
  enable_parallel: false
versions:
- dir: 11/debian12/11.5
  excludeTests:
  - tests/functional_tests/10_create_db_test.yaml
  - tests/functional_tests/10_remote_host_test.yaml
  from: marketplace.gcr.io/google/debian12
  packages:
    golang:
      version: '1.20'
    gosu:
      version: '1.17'
    mariadb:
      gpg: 177F4010FE56CA3336300305F1656F24C74CD1D8
      major: '11.5'
      version: 11.5.2
  repo: mariadb11
  annotations:
  - key: com.googleapis.cloudmarketplace.product.service.name
    value: services/2a63a3a0-26e6-41c3-8e5a-7e9c6ac0964b.cloudpartnerservices.goog
  tags:
  - 11.5.2-debian12
  - 11.5-debian12
  - 11-debian12
  - 11.5.2
  - '11.5'
  - '11'
  - latest
  templateArgs:
    c2dRelease: 11.5.2
    distroCodename: bookworm
    distroMajor: '12'

- dir: 11/debian12/11.1
  excludeTests:
  - tests/functional_tests/10_create_db_test.yaml
  - tests/functional_tests/10_remote_host_test.yaml
  from: marketplace.gcr.io/google/debian12
  packages:
    golang:
      version: '1.20'
    gosu:
      version: '1.17'
    mariadb:
      gpg: 177F4010FE56CA3336300305F1656F24C74CD1D8
      major: '11.1'
      version: 11.1.6
  annotations:
  - key: com.googleapis.cloudmarketplace.product.service.name
    value: services/2a63a3a0-26e6-41c3-8e5a-7e9c6ac0964b.cloudpartnerservices.goog
  repo: mariadb11
  tags:
  - 11.1.6-debian12
  - 11.1-debian12
  - 11.1.6
  - '11.1'
  templateArgs:
    c2dRelease: 11.1.6
    distroCodename: bookworm
    distroMajor: '12'

- dir: 10/debian12/10.11
  excludeTests:
  - tests/functional_tests/11_create_db_test.yaml
  - tests/functional_tests/11_remote_host_test.yaml
  from: marketplace.gcr.io/google/debian12
  packages:
    golang:
      version: '1.20'
    gosu:
      version: '1.17'
    mariadb:
      gpg: 177F4010FE56CA3336300305F1656F24C74CD1D8
      major: '10.11'
      version: '10.11.9'
  repo: mariadb10
  annotations:
  - key: com.googleapis.cloudmarketplace.product.service.name
    value: services/1082de93-67cf-464e-8cec-c5137645640a.cloudpartnerservices.goog
  tags:
  - 10.11.9-debian12
  - 10.11-debian12
  - 10-debian12
  - '10.11.9'
  - '10.11'
  - '10'
  - latest
  templateArgs:
    c2dRelease: 10.11.9
    distroCodename: bookworm
    distroMajor: '12'
