Skip to content

Commit 31775ce

Browse files
committed
refactor: comment out PAM plugin build steps in Docker workflow
- Commented out the PAM plugin build steps in the Docker workflow to simplify the process and avoid unnecessary execution. - This change prepares the workflow for potential future modifications without removing the existing logic.
1 parent e84e0fc commit 31775ce

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/docker-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ jobs:
132132
# Build PAM plugin (Linux only due to PAM dependency)
133133
# Note: Building PAM plugin locally since it requires system PAM headers
134134
# Only building for linux/amd64 since cross-compilation with CGO and PAM dependencies is complex
135-
if [ -d "pkg/plugins/glauth-pam" ]; then
136-
echo "Building PAM plugin..."
137-
cd pkg/plugins/glauth-pam
138-
go mod download
139-
go mod verify
140-
go mod tidy
135+
# if [ -d "pkg/plugins/glauth-pam" ]; then
136+
# echo "Building PAM plugin..."
137+
# cd pkg/plugins/glauth-pam
138+
# go mod download
139+
# go mod verify
140+
# go mod tidy
141141
142-
# Build for linux/amd64 architecture (runner is amd64)
143-
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags="-s -w" -buildmode=plugin -o ../../../bin/pam-linux-amd64.so .
142+
# # Build for linux/amd64 architecture (runner is amd64)
143+
# GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags="-s -w" -buildmode=plugin -o ../../../bin/pam-linux-amd64.so .
144144
145-
cd ../../..
146-
fi
145+
# cd ../../..
146+
# fi
147147
148148
# Fix ownership and permissions for plugin files created by xgo
149149
sudo chown -R $USER:$USER bin/ 2>/dev/null || true

0 commit comments

Comments
 (0)