Skip to content

Commit

Permalink
Test lambda env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
poundifdef committed Nov 18, 2023
1 parent a835414 commit 0cccdde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM golang:1.21 as build

WORKDIR /build

# Copy dependencies list
COPY go.mod go.sum ./

COPY . .

# Installs Go dependencies
RUN go mod download

COPY . .

# Build with optional lambda.norpc tag
RUN go build -tags lambda.norpc -o certmaster certmaster

Expand Down
2 changes: 2 additions & 0 deletions certmaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func uploadCertToDestination(request models.CertRequest, cert *certificate.Resou
}

func requestCertificates(domain string, email string, dnsProvider string, stage bool) (*certificate.Resource, error) {
slog.Debug("Environment variables", "ENVVARS", os.Environ())

// Create a user for ACME
user := newUser(email)

Expand Down

0 comments on commit 0cccdde

Please sign in to comment.