Skip to content

Commit 4a1a3b7

Browse files
committed
Rename dockerfile targets
1 parent 08dd9e4 commit 4a1a3b7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
strategy:
6262
matrix:
6363
docker_target:
64-
- http_app
65-
- socketio_app
66-
- dramatiq_app
64+
- http
65+
- socketio
66+
- dramatiq
6767
steps:
6868
# GitHub gives only repository complete in <owner>/<repo> format.
6969
# Need some manual sheanigans

.gitlab_ci/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-http-app-amd64:
1717
variables:
1818
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-http
1919
DOCKER_PLATFORM: "linux/amd64"
20-
DOCKER_TARGET: http_app
20+
DOCKER_TARGET: http
2121
tags:
2222
- saas-linux-small-amd64
2323
rules:
@@ -32,7 +32,7 @@ build-http-app-arm64:
3232
variables:
3333
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-http
3434
DOCKER_PLATFORM: "linux/arm64"
35-
DOCKER_TARGET: http_app
35+
DOCKER_TARGET: http
3636
tags:
3737
- saas-linux-small-arm64
3838
rules:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ COPY --chown=nonroot:nonroot src/common ./common
7676
COPY --chown=nonroot:nonroot src/alembic.ini .
7777

7878
# Copy the http python package and requirements from relevant builder
79-
FROM base_app AS http_app
79+
FROM base_app AS http
8080
COPY --from=http_builder /venv /venv
8181
COPY --chown=nonroot:nonroot src/http_app ./http_app
8282
# Run CMD using array syntax, so it uses `exec` and runs as PID1
8383
CMD ["opentelemetry-instrument", "python", "-m", "http_app"]
8484

8585
# Copy the socketio python package and requirements from relevant builder
86-
FROM base_app AS socketio_app
86+
FROM base_app AS socketio
8787
COPY --from=socketio_builder /venv /venv
8888
COPY --chown=nonroot:nonroot src/socketio_app ./socketio_app
8989
# Run CMD using array syntax, so it uses `exec` and runs as PID1
9090
CMD ["opentelemetry-instrument", "python", "-m", "socketio_app"]
9191

9292
# Copy the dramatiq python package and requirements from relevant builder
93-
FROM base_app AS dramatiq_app
93+
FROM base_app AS dramatiq
9494
COPY --from=dramatiq_builder /venv /venv
9595
COPY --chown=nonroot:nonroot src/dramatiq_worker ./dramatiq_worker
9696
# Run CMD using array syntax, so it uses `exec` and runs as PID1

0 commit comments

Comments
 (0)