Commit 667c3e0b authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci: enable semantic release + extra tags

Closes #21
parent 0eb9cac2
Loading
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
# included templates
include:
  # $TBC_NAMESPACE is a group variable; can be globally overridden
  # Go template
  - project: "$TBC_NAMESPACE/golang"
    ref: "4.7"
    ref: "4.8"
    file: "templates/gitlab-ci-golang.yml"
  # Docker template
  - project: "$TBC_NAMESPACE/docker"
    ref: "5.7"
    ref: "5.9"
    file: "templates/gitlab-ci-docker.yml"
  # semantic-release template
  - project: "$TBC_NAMESPACE/semantic-release"
    ref: "3.8"
    file: "templates/gitlab-ci-semrel.yml"

# your pipeline stages
stages:
@@ -27,9 +33,10 @@ variables:
  # force application build
  GO_BUILD_MODE: application
  GO_SBOM_OPTS: "-main cmd/vault_service"

  DOCKER_BUILD_ARGS: "--build-arg CI_PROJECT_URL --build-arg DEFAULT_VAULT_URL"
  DOCKER_PROD_PUBLISH_STRATEGY: "auto"
  DOCKER_RELEASE_EXTRA_TAGS: "latest \\g<major>.\\g<minor>\\g<build> \\g<major>\\g<build>"
  SEMREL_AUTO_RELEASE_ENABLED: "true"

# this job tests the Docker image on a remote Vault server (configurable)
test-on-remote: