Skip to content

Commit

Permalink
add server ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Steiner committed Dec 4, 2023
1 parent 9d182ce commit 24dc1fe
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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_VERSION=69.0.2
FLWR_VERSION=1.6.0
UBUNTU_VERSION=22.04
push: false
tags: server:latest

- run: |
cat <<EOT >>${GITHUB_STEP_SUMMARY}
Server image: ${{steps.build.outputs.imageid}}
EOT

0 comments on commit 24dc1fe

Please sign in to comment.