mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
retry using new LOG_CHANNEL for build
This commit is contained in:
5
.github/workflows/cd.yml
vendored
5
.github/workflows/cd.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user