From 7bf319f108b2836840268ac6996b15086d1a7b55 Mon Sep 17 00:00:00 2001 From: Robert Steiner Date: Mon, 4 Dec 2023 15:13:59 +0100 Subject: [PATCH] add server ci workflow --- .github/workflows/docker.yml | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 000000000000..67f161c1c624 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,65 @@ +name: Docker server build + +on: + # workflow_dispatch: + # inputs: + # python_version: + # description: "Python version" + # type: string + # required: true + # default: "3.8.0" + # pip_version: + # description: "Pip version" + # type: string + # required: true + # default: "23.0.1" + # setuptools_version: + # description: "Setuptools version" + # type: string + # required: true + # default: "69.0.2" + # fwlr_version: + # description: "Flower version" + # type: string + # required: true + push + +jobs: + buildx: + name: Test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: "arm64" + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # - name: Login to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + id: build + uses: docker/build-push-action@v5 + with: + context: src/docker/server + build-args: | + PYTHON_VERSION=3.8.0 + PIP_VERSION=23.0.1 + SETUPTOOLS_VERSIO=69.0.2 + FLWR_VERSION=1.6.0 + UBUNTU_VERSION=22.04 + push: false + tags: server:latest + + - run: | + cat <>${GITHUB_STEP_SUMMARY} + Server image: ${{steps.build.outputs.imageid}} + EOT