Skip to content

Modular logistics and supply chain operating system (LSOS)

retry using new `LOG_CHANNEL` for build

Ronald A. Richardson768fa6fc277c
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 67b7edad..273bdff7 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -47,7 +47,10 @@ jobs:
uses: aws-actions/amazon-ecr-login@v1
- name: Prepare Composer Auth Secret
- run: echo '${{ env.COMPOSER_AUTH }}' > composer-auth.json
+ run: |
+ if [[ -n "${{ secrets._GITHUB_AUTH_TOKEN }}" ]]; then
+ echo '${{ env.COMPOSER_AUTH }}' > composer-auth.json
+ fi
- name: Build and Release
uses: docker/bake-action@v2
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9d45f309..76197752 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -34,6 +34,9 @@ COPY --from=ghcr.io/springload/ssm-parent:1.8 /usr/bin/ssm-parent /sbin/ssm-pare
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
+# Set some build ENV variables
+ENV LOG_CHANNEL=stdout
+
# For development only
WORKDIR /var/www/html
COPY --chown=www-data:nogroup ./packages ./packages
@@ -60,8 +63,8 @@ RUN echo $(cat /proc/sys/kernel/random/uuid) > /.fleetbase
RUN mkdir -p /root/.composer
# Load the secret into the auth.json file.
-RUN --mount=type=secret,id=composer_auth,dst=/root/.composer/auth.json \
- cp /root/.composer/auth.json /root/.composer/auth.json
+RUN --mount=type=secret,id=composer_auth,dst=/root/.composer/auth.json echo "Composer auth.json mounted"
+
# Set environment
ARG ENVIRONMENT=production