Skip to content

Commit 746d07c

Browse files
authored
ci: add Flux credentials as build args in docker-compose (#445)
1 parent 6ad9f67 commit 746d07c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ RUN install-php-extensions xdebug sockets
7878
#---------------------------------
7979
FROM base AS composer
8080

81+
ARG FLUX_USERNAME
82+
ARG FLUX_LICENSE_KEY
83+
8184
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
8285
COPY --chown=www-data:www-data composer.* ./
8386
COPY --chown=www-data:www-data . .
8487

85-
RUN composer install --no-dev --no-interaction --no-scripts --prefer-dist \
88+
RUN composer config http-basic.composer.fluxui.dev "${FLUX_USERNAME}" "${FLUX_LICENSE_KEY}" \
89+
&& composer install --no-dev --no-interaction --no-scripts --prefer-dist \
8690
&& composer dump-autoload --classmap-authoritative --no-dev --optimize
8791

8892
#---------------------------------

docker-compose.prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
args:
77
NODE_VERSION: 22
88
PHP_VERSION: 8.4
9+
FLUX_USERNAME: ${FLUX_USERNAME}
10+
FLUX_LICENSE_KEY: ${FLUX_LICENSE_KEY}
911
image: laravelcm/php
1012
restart: always
1113
extra_hosts:

0 commit comments

Comments
 (0)