fix: add Docker Hub login + switch runtime to AWS ECR Public to avoid rate limits

This commit is contained in:
Ashwin Kumar 2026-04-09 06:26:01 +02:00
parent 085b3169f6
commit 1d3d07f001
19 changed files with 24 additions and 23 deletions

View file

@ -33,13 +33,14 @@ steps:
dockerfile: apps/${SERVICE}/Dockerfile dockerfile: apps/${SERVICE}/Dockerfile
tags: tags:
- high-performance-latest - high-performance-latest
logins:
- registry: https://index.docker.io/v1/
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_TOKEN
username: username:
from_secret: GHCR_USERNAME from_secret: GHCR_USERNAME
password: password:
from_secret: GHCR_TOKEN from_secret: GHCR_TOKEN
platforms: linux/amd64 platforms: linux/amd64

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin catering_services RUN cargo build --release --bin catering_services
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin companies RUN cargo build --release --bin companies
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin cron RUN cargo build --release --bin cron
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin customers RUN cargo build --release --bin customers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin developers RUN cargo build --release --bin developers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin employees RUN cargo build --release --bin employees
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin fitness_trainers RUN cargo build --release --bin fitness_trainers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin gateway RUN cargo build --release --bin gateway
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin graphic_designers RUN cargo build --release --bin graphic_designers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin job_seekers RUN cargo build --release --bin job_seekers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin makeup_artists RUN cargo build --release --bin makeup_artists
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin payments RUN cargo build --release --bin payments
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin photographers RUN cargo build --release --bin photographers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin social_media_managers RUN cargo build --release --bin social_media_managers
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin tutors RUN cargo build --release --bin tutors
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin ugc_content_creators RUN cargo build --release --bin ugc_content_creators
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin users RUN cargo build --release --bin users
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \

View file

@ -15,7 +15,7 @@ ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2 ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin video_editors RUN cargo build --release --bin video_editors
FROM debian:bookworm-slim AS runtime FROM public.ecr.aws/debian/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \