-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a633113
commit 3027775
Showing
2 changed files
with
81 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,56 @@ | ||
name: Build docker server image | ||
|
||
on: | ||
# workflow_dispatch: | ||
# inputs: | ||
# python-version: | ||
# description: "Python version" | ||
# type: string | ||
# required: true | ||
# pip-version: | ||
# description: "Pip version" | ||
# type: string | ||
# required: true | ||
# setuptools-version: | ||
# description: "Setuptools version" | ||
# type: string | ||
# required: true | ||
# flwr-version: | ||
# description: "Flower version" | ||
# type: string | ||
# required: true | ||
# inputs: | ||
# flwr-version: | ||
# description: "Version of Flower e.g. (1.6.0)." | ||
# required: true | ||
# type: string | ||
# python-version: | ||
# description: "Version of Python e.g. (3.11.7 or 3.11). Defaults to the version defined in _docker-server.yaml." | ||
# required: false | ||
# type: string | ||
# pip-version: | ||
# description: "Version of pip. Defaults to the version defined in _docker-server.yaml." | ||
# required: false | ||
# type: string | ||
# setuptools-version: | ||
# description: "Version of setuptools. Defaults to the version defined in _docker-server.yaml." | ||
# required: false | ||
# type: string | ||
# ubuntu-version: | ||
# description: "Version of Ubuntu. Defaults to the version defined in _docker-server.yaml." | ||
# required: false | ||
# type: string | ||
push | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-server-images: | ||
uses: ./.github/workflows/_docker-server.yml | ||
with: | ||
flwr-version: 1.6.0 | ||
pip-version: 23.3.1 | ||
setuptools-version: 68.2.2 | ||
# flwr-version: ${{ github.event.inputs.flwr-version }} | ||
# python-version: ${{ github.event.inputs.python-version }} | ||
# pip-version: ${{ github.event.inputs.pip-version }} | ||
# setuptools-version: ${{ github.event.inputs.setuptools-version }} | ||
# ubuntu-version: ${{ github.event.inputs.ubuntu-version }} | ||
secrets: | ||
dockerhub-user: ${{ secrets.DOCKERHUB_USERNAME }} | ||
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
# run: | | ||
# cat <<EOT >>${GITHUB_STEP_SUMMARY} | ||
# Server image: ${{steps.build.outputs.imageid}} | ||
# EOT | ||
|
||
summary: | ||
runs-on: ubuntu-22.04 | ||
needs: build-server-images | ||
steps: | ||
- run: | | ||
echo "### Images" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
for IMAGE in $(echo ${{ toJson(needs.build-server-images.outputs.metadata) }} | jq -r '.tags[]' ); do | ||
echo "- $IMAGE" >> $GITHUB_STEP_SUMMARY | ||
done |