mirror of
https://github.com/harness-community/drone-helm-chart-container-registry.git
synced 2026-06-04 18:24:12 +08:00
dockerfile fix
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
FROM --platform=linux/amd64 alpine:latest
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
ADD ./drone-helm /bin/
|
||||
|
||||
RUN chmod +x /bin/drone-helm
|
||||
|
||||
ENTRYPOINT ["/bin/drone-helm"]
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM --platform=linux/arm64 alpine:latest as base
|
||||
FROM alpine:latest as base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM --platform=windows/amd64 plugins/base:windows-ltsc2022-amd64
|
||||
FROM plugins/base:windows-ltsc2022-amd64
|
||||
|
||||
USER ContainerAdministrator
|
||||
|
||||
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestEnvironmentVariables(t *testing.T) {
|
||||
os.Setenv("PLUGIN_REGISTRY_URL", "")
|
||||
// Set other required env variables to non-empty values
|
||||
|
||||
if os.Getenv("PLUGIN_REGISTRY_URL") == "" {
|
||||
t.Error("Expected an error due to missing PLUGIN_REGISTRY_URL")
|
||||
}
|
||||
// Repeat for other variables
|
||||
}
|
||||
Reference in New Issue
Block a user