mirror of
https://github.com/drone-plugins/drone-docker.git
synced 2026-06-04 10:15:30 +08:00
Updated cmd/drone-acr/main.go
This commit is contained in:
@@ -28,7 +28,7 @@ type subscriptionUrlResponse struct {
|
||||
}
|
||||
|
||||
const (
|
||||
acrCertPath = "/tmp/acr-cert.pem"
|
||||
acrCertFile = "acr-cert.pem"
|
||||
azSubscriptionApiVersion = "2021-04-01"
|
||||
azSubscriptionBaseUrl = "https://management.azure.com/subscriptions/"
|
||||
basePublicUrl = "https://portal.azure.com/#view/Microsoft_Azure_ContainerRegistries/TagMetadataBlade/registryId/"
|
||||
@@ -41,6 +41,10 @@ const (
|
||||
certPathEnv = "AZURE_CLIENT_CERTIFICATE_PATH"
|
||||
)
|
||||
|
||||
var (
|
||||
acrCertPath = filepath.Join(os.TempDir(), acrCertFile)
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Load env-file if it exists first
|
||||
if env := os.Getenv("PLUGIN_ENV_FILE"); env != "" {
|
||||
|
||||
Reference in New Issue
Block a user