Restore teleport-private deb/rpm gating (#10532)

This was removed in #9783, and should not have been.
This commit is contained in:
Walt 2022-02-24 10:55:06 -08:00 committed by GitHub
parent ad8f0da43c
commit 9ee3951d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4838,11 +4838,16 @@ steps:
# this step exits early and skips all remaining steps in the pipeline if the
# tag looks like a pre-release, to avoid pushing pre-release RPMs and DEBs to
# our yum / apt repos.
- name: Check if repo is public
image: alpine
commands:
- if [ "${DRONE_REPO}" != "gravitational/teleport" ]; then echo "---> Not publishing ${DRONE_REPO} packages to RPM and DEB repos" && exit 78; fi
- name: Check if tag is prerelease
image: golang:1.17-alpine
commands:
- cd /go/src/github.com/gravitational/teleport/build.assets/tooling
- go run ./cmd/check -tag ${DRONE_TAG} -check prerelease || (echo '---> Not publishing ${DRONE_REPO} packages to RPM and DEB repos' && exit 78)
- go run ./cmd/check -tag ${DRONE_TAG} -check prerelease || (echo '---> Not publishing ${DRONE_TAG} packages to RPM and DEB repos' && exit 78)
- name: Download RPM repo contents
image: amazon/aws-cli
@ -5035,6 +5040,6 @@ volumes:
name: drone-s3-debrepo-pvc
---
kind: signature
hmac: 7212c3b6f83e020958e4c90cacee6b2b746c728ee0a22d3ce4605f40273f0115
hmac: 0c5316489efc1bfa9acfd87bed0e2807ec4f2b8e123649c168c9d675e3c8a4cc
...