Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/release-go-daemons-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ on:
type: string
required: false
default: '["linux"]'
dockerfile-expose-ports:
description: space-separated list of ports to EXPOSE in Dockerfile
type: string
required: false
default: ""

permissions: write-all

Expand Down Expand Up @@ -309,9 +314,7 @@ jobs:
RUN apt-get install -y ./${{ env.ARTIFACT_PREFIX }}_\${TARGETARCH}.deb && rm -f ./${{ env.ARTIFACT_PREFIX }}_\${TARGETARCH}.deb
RUN ${{ inputs.dockerfile-run }}
RUN rm -rf /var/lib/apt/lists/*
EXPOSE 443
EXPOSE 8000
EXPOSE 8080
$([ -n "${{ inputs.dockerfile-expose-ports }}" ] && echo "${{ inputs.dockerfile-expose-ports }}" | tr ' ' '\n' | sed 's/^/EXPOSE /')
CMD ${{ inputs.dockerfile-cmd }}
EOF

Expand Down