Skip to content

Fix deploy-user-app workflow heredoc parsing in Dockerfile generation step - #2

Draft
Parshant1231 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-118962505-1279096621-363d1753-9138-47db-bf32-62cb98de4980
Draft

Fix deploy-user-app workflow heredoc parsing in Dockerfile generation step#2
Parshant1231 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-118962505-1279096621-363d1753-9138-47db-bf32-62cb98de4980

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The Build and Deploy Parshant1231/dev_deploy job was failing before image build due to a shell parse error in the Select or generate Dockerfile step (syntax error: unexpected end of file). The failure came from an incorrectly terminated heredoc in .github/workflows/deploy-user-app.yml.

  • Root cause

    • The generated Dockerfile heredoc terminator (EOF) and body were indented inside the run block, which caused Bash to miss the heredoc close token and abort the step.
  • Change made

    • Updated the heredoc block in deploy-user-app.yml so heredoc content and closing EOF are emitted in a shell-safe format.
    • No workflow logic changes beyond fixing heredoc parsing.
  • Relevant patch

    cat > generated.Dockerfile << 'EOF'
    FROM node:18-alpine
    WORKDIR /app
    COPY package*.json ./
    RUN npm ci --only=production
    COPY . .
    EXPOSE 3000
    CMD ["node", "index.js"]
    EOF

Copilot AI changed the title [WIP] Copilot Request Fix deploy-user-app workflow heredoc parsing in Dockerfile generation step Jun 24, 2026
Copilot AI requested a review from Parshant1231 June 24, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants