mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-17 15:57:21 +03:00
cleanup: remove unused credentials (#18814)
This commit is contained in:
parent
a6ec4c9b36
commit
5d0d5027ff
@ -83,8 +83,6 @@ steps:
|
||||
env:
|
||||
DAML_SDK_RELEASE_VERSION: ${{parameters.release_tag}}
|
||||
DAML_SCALA_VERSION: ${{parameters.scala_version}}
|
||||
ARTIFACTORY_USERNAME: $(ARTIFACTORY_USERNAME)
|
||||
ARTIFACTORY_PASSWORD: $(ARTIFACTORY_PASSWORD)
|
||||
IS_FORK: $(System.PullRequest.IsFork)
|
||||
condition: and(succeeded(),
|
||||
eq(variables.skip, 'false'),
|
||||
|
@ -50,8 +50,6 @@ steps:
|
||||
displayName: 'Build'
|
||||
env:
|
||||
DAML_SDK_RELEASE_VERSION: ${{parameters.release_tag}}
|
||||
ARTIFACTORY_USERNAME: $(ARTIFACTORY_USERNAME)
|
||||
ARTIFACTORY_PASSWORD: $(ARTIFACTORY_PASSWORD)
|
||||
# On release, we want to skip testing because:
|
||||
# - Caching on Windows is keyed on full path, and full path is somewhat
|
||||
# random (for a given machine, each pipeline has a its own workdir, but
|
||||
|
@ -210,8 +210,6 @@ jobs:
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: $(CANTON_READONLY_TOKEN)
|
||||
AUTH: $(ARTIFACTORY_USERNAME):$(ARTIFACTORY_PASSWORD)
|
||||
GCRED: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
||||
|
||||
- job: compat_versions_pr
|
||||
condition: or(eq(variables['Build.SourceBranchName'], 'main'),
|
||||
|
@ -11,10 +11,6 @@ eval "$(dev-env/bin/dade assist)"
|
||||
|
||||
DADE_PRE_COMMIT_HOOK_TYPE=pre-push
|
||||
|
||||
if [ -n "${ARTIFACTORY_USERNAME:-}" ] && [ -n "${ARTIFACTORY_PASSWORD:-}" ]; then
|
||||
export ARTIFACTORY_AUTH=$(echo -n "$ARTIFACTORY_USERNAME:$ARTIFACTORY_PASSWORD" | base64 -w0)
|
||||
fi
|
||||
|
||||
# always start from a clean slate to ensure that the install phase produces the scenario described by `DADE_NO_PRE_COMMIT` and `DADE_PRE_COMMIT_HOOK_TYPE`
|
||||
# this is a bit unfortunate but it doesn't look like pre-commit currently supports uninstalling all hooks in one go as of version 2.20.0
|
||||
HOOK_TYPES=(pre-commit pre-merge-commit pre-push prepare-commit-msg commit-msg post-checkout post-commit post-merge post-rewrite)
|
||||
|
@ -24,15 +24,11 @@ npm_version = "{NPM_VERSION}"
|
||||
mvn_version = "{MVN_VERSION}"
|
||||
ghc_version = "{GHC_VERSION}"
|
||||
sdk_version = "{SDK_VERSION}"
|
||||
artif_user = "{artif_user}"
|
||||
artif_pass = "{artif_pass}"
|
||||
""".format(
|
||||
SDK_VERSION = semver,
|
||||
NPM_VERSION = semver,
|
||||
MVN_VERSION = semver,
|
||||
GHC_VERSION = ghc,
|
||||
artif_user = ctx.os.environ.get("ARTIFACTORY_USERNAME", default = ""),
|
||||
artif_pass = ctx.os.environ.get("ARTIFACTORY_PASSWORD", default = ""),
|
||||
),
|
||||
executable = False,
|
||||
)
|
||||
@ -40,7 +36,7 @@ artif_pass = "{artif_pass}"
|
||||
build_environment = repository_rule(
|
||||
# Tell Bazel that this rule will produce different results if any of the
|
||||
# env vars in the list has changed.
|
||||
environ = ["DAML_SDK_RELEASE_VERSION", "ARTIFACTORY_USERNAME", "ARTIFACTORY_PASSWORD"],
|
||||
environ = ["DAML_SDK_RELEASE_VERSION"],
|
||||
implementation = _impl,
|
||||
attrs = {},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user