Skip to content

Commit

Permalink
fix: added composer private repo install capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed May 31, 2024
1 parent 52206dc commit 00d4c22
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
push: true
build-args: |
RELEASE_VERSION=dev-app-latest
COMPOSER_AUTH=${{ secrets.COMPOSER_AUTH }}
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:dev-app-latest

# Build and push the nginx Docker image
Expand All @@ -83,6 +84,7 @@ jobs:
push: true
build-args: |
RELEASE_VERSION=dev-nginx-latest
COMPOSER_AUTH=${{ secrets.COMPOSER_AUTH }}
tags: ${{ env.REPOSITORY_NAMESPACE }}/${{ env.REPOSITORY_NAME }}:dev-nginx-latest

# Deploy the latest Docker image to the GKE cluster
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ yarn-error.log
/.fleet
/.idea
/.vscode
storage/*.tsv
storage/*.csv
3 changes: 3 additions & 0 deletions resources/ops/docker/app/app.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ COPY /config config
COPY /routes routes
COPY . /var/www/html

ARG COMPOSER_AUTH
RUN echo "$COMPOSER_AUTH" > auth.json

RUN composer install
RUN composer dump-autoload -o

Expand Down
3 changes: 3 additions & 0 deletions resources/ops/docker/nginx/nginx.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ COPY /config config
COPY /routes routes
COPY . /var/www/html

ARG COMPOSER_AUTH
RUN echo "$COMPOSER_AUTH" > auth.json

RUN composer install
RUN composer dump-autoload -o

Expand Down

0 comments on commit 00d4c22

Please sign in to comment.