Skip to content

Commit f244b70

Browse files
committed
patch(backend): It's that time of the year again
- Use bash for loop for merging the images, avoids the overhead to setup docker in the runner; faster than matrix strategy
1 parent 5bdb11e commit f244b70

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ jobs:
5353
merge-manifest:
5454
needs: build
5555
runs-on: ubuntu-latest
56-
strategy:
57-
matrix:
58-
service: [frontend, backend]
5956
steps:
6057
- name: Log in to GitHub Container Registry
6158
uses: docker/login-action@v3
@@ -67,10 +64,15 @@ jobs:
6764
- name: Set up Docker Buildx
6865
uses: docker/setup-buildx-action@v3
6966

70-
- name: Create multi-arch manifest for ${{ matrix.service }}
67+
- name: Create multi-arch manifests
7168
run: |
72-
docker buildx imagetools create \
73-
-t ${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:${{ github.sha }} \
74-
-t ${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:latest \
75-
${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:${{ github.sha }}-amd64 \
76-
${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:${{ github.sha }}-arm64
69+
services=("frontend" "backend")
70+
71+
for service in "${services[@]}"; do
72+
echo "Creating manifest for $service..."
73+
74+
docker buildx imagetools create \
75+
-t ${{ env.IMAGE_PREFIX }}-$service:${{ github.sha }} \
76+
-t ${{ env.IMAGE_PREFIX }}-$service:latest \
77+
${{ env.IMAGE_PREFIX }}-$service:${{ github.sha }}-amd64 \
78+
${{ env.IMAGE_PREFIX }}-$service:${{ github.sha }}-arm64

backend/src/SlcmSwitch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def _client(self, *args, **kwargs) -> AsyncGenerator[AsyncClient]:
3939
client = AsyncClient(
4040
base_url=self.base_url,
4141
headers={"User-Agent": self.user_agent},
42-
timeout=10,
42+
timeout=30,
4343
transport=self._transport,
4444
*args,
4545
**kwargs,

0 commit comments

Comments
 (0)