Skip to content

Commit 0e0b316

Browse files
committed
feat: add support for build in arm and amd64
1 parent 30d6e93 commit 0e0b316

File tree

4 files changed

+13
-25
lines changed

4 files changed

+13
-25
lines changed

.github/workflows/ci-cd.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
- name: Checkout code
6868
uses: actions/checkout@v4
6969

70+
- name: Set up QEMU
71+
uses: docker/setup-qemu-action@v3
72+
73+
- name: Set up Docker Buildx
74+
uses: docker/setup-buildx-action@v3
75+
7076
- name: Build with Docker Compose
7177
run: |
7278
docker compose build sdci-base
@@ -86,8 +92,11 @@ jobs:
8692
toml get --toml-path pyproject.toml project.version > PROJECT_VERSION
8793
8894
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
89-
docker tag sdci:latest ${{ secrets.DOCKER_USERNAME }}/sdci:$(cat PROJECT_VERSION)
90-
docker push ${{ secrets.DOCKER_USERNAME }}/sdci:$(cat PROJECT_VERSION)
95+
96+
docker buildx build \
97+
--platform linux/amd64,linux/arm64 \
98+
--tag ${{ secrets.DOCKER_USERNAME }}/sdci:$(cat PROJECT_VERSION) \
99+
--push .
91100
92101
- name: Clean up
93102
run: |

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,6 @@ sdci-cli run --token HAPPY123 http://localhost:8842 job_1 param1 param2 param3
5858
- `TASK_NAME`: Name of the task to run (required)
5959
- `PARAMETERS`: Optional parameters to pass to the task
6060

61-
## 🖥️ Server
62-
63-
The SDCI server component is currently in development. The goal is to create a Docker image that will be used as a sidecard in production environments, making it easily deployable alongside your main applications.
64-
65-
### Docker Deployment
66-
67-
A Docker image will be provided that allows you to run the SDCI server with minimal configuration. This image is designed to work as a sidecard container in your production environment.
68-
69-
## 📁 Project Structure
70-
71-
- `src/server.py`: FastAPI server implementation
72-
- `src/sdci/client.py`: Client implementation for communicating with the server
73-
- `src/sdci/command.py`: CLI interface using Click
74-
- `src/tasks/`: Directory containing task definitions as basic shell scripts.
75-
76-
The diagram above shows the structure of the SDCI project:
77-
78-
1. **Server Component** (`server.py`): The FastAPI server that handles task execution requests
79-
2. **Client Components** (`client.py`, `command.py`): Handle communication with the server and provide CLI interface
80-
3. **Runner Component** (`runner.py`): Manages the execution of shell script tasks
81-
4. **Tasks** (`test_job_1.sh`): Shell scripts that define the actual tasks to be executed
8261

8362
## 👤 Author
8463

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sdci"
3-
version = "0.2.2"
3+
version = "0.3.0"
44
description = "SDCI - Sistema de Deploy Continuo Integrado - Integrated Continuous Deployment System - Sidecar Micro CD"
55
readme = "README.md"
66
authors = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)