mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[Buildkite] Do not persist Docker secret in builds (#603)
This commit is contained in:
parent
275af90137
commit
1b478e8f3d
|
@ -10,6 +10,10 @@ if [[ $BUILDKITE_LABEL =~ ":selenium:" ]] || [[ $BUILDKITE_LABEL =~ ":docker: Bu
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy" ]]; then
|
||||||
|
docker logout
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $BUILDKITE_BRANCH == "master" ]] || [[ $BUILDKITE_BRANCH =~ ^v.* ]] && [[ $BUILDKITE_PULL_REQUEST == "false" ]]; then
|
if [[ $BUILDKITE_BRANCH == "master" ]] || [[ $BUILDKITE_BRANCH =~ ^v.* ]] && [[ $BUILDKITE_PULL_REQUEST == "false" ]]; then
|
||||||
if [[ $BUILDKITE_LABEL == ":docker: Deploy Manifests" ]]; then
|
if [[ $BUILDKITE_LABEL == ":docker: Deploy Manifests" ]]; then
|
||||||
echo "--- :docker: Removing tags for deleted branches"
|
echo "--- :docker: Removing tags for deleted branches"
|
||||||
|
|
|
@ -16,7 +16,6 @@ var arch string
|
||||||
|
|
||||||
var supportedArch = []string{"amd64", "arm32v7", "arm64v8"}
|
var supportedArch = []string{"amd64", "arm32v7", "arm64v8"}
|
||||||
var defaultArch = "amd64"
|
var defaultArch = "amd64"
|
||||||
var buildkite = os.Getenv("BUILDKITE")
|
|
||||||
var buildkiteQEMU = os.Getenv("BUILDKITE_AGENT_META_DATA_QEMU")
|
var buildkiteQEMU = os.Getenv("BUILDKITE_AGENT_META_DATA_QEMU")
|
||||||
var ciBranch = os.Getenv("BUILDKITE_BRANCH")
|
var ciBranch = os.Getenv("BUILDKITE_BRANCH")
|
||||||
var ciPullRequest = os.Getenv("BUILDKITE_PULL_REQUEST")
|
var ciPullRequest = os.Getenv("BUILDKITE_PULL_REQUEST")
|
||||||
|
@ -145,10 +144,6 @@ func login(docker *Docker) {
|
||||||
username := os.Getenv("DOCKER_USERNAME")
|
username := os.Getenv("DOCKER_USERNAME")
|
||||||
password := os.Getenv("DOCKER_PASSWORD")
|
password := os.Getenv("DOCKER_PASSWORD")
|
||||||
|
|
||||||
if buildkite == "true" {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if username == "" {
|
if username == "" {
|
||||||
log.Fatal(errors.New("DOCKER_USERNAME is empty"))
|
log.Fatal(errors.New("DOCKER_USERNAME is empty"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user