Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
app:
- pebble
- pebble-challtestsrv
include:
- app: pebble
expose_ports: "14000 15000"
- app: pebble-challtestsrv
expose_ports: "5001 5002 5003 8053 8055 8443"
steps:
- uses: actions/checkout@v5
- name: Download ${{ matrix.app }} artifacts
Expand Down Expand Up @@ -96,7 +98,9 @@ jobs:
- name: Build and push ${{ github.repository }}/${{ matrix.app }} for ${{ env.DOCKER_PLATFORMS }}
uses: docker/build-push-action@v5
with:
build-args: APP=${{ matrix.app }}
build-args: |
APP=${{ matrix.app }}
EXPOSE_PORTS=${{ matrix.expose_ports }}
build-contexts: dist-files=/tmp/dist
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ ENTRYPOINT [ "/app.exe" ]

# Final stage: dynamically select between Linux and Windows stages based on TARGETOS argument
FROM ${TARGETOS} AS final
ARG EXPOSE_PORTS
# Expose the specified ports
EXPOSE ${EXPOSE_PORTS}
# Add test configuration files
COPY ./test/ /test/
Loading