modified to setup composer auth for private packages/extensions in builds and deploy if arg provided

This commit is contained in:
Ronald A. Richardson
2023-08-01 17:08:44 +08:00
parent 9c604edcf5
commit 406ca11199
3 changed files with 16 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ concurrency:
env:
PROJECT: ${{ secrets.PROJECT }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_GITHUB_AUTH_TOKEN }}"}}'
jobs:
build_service:
name: Build and Deploy the Service
@@ -49,6 +51,7 @@ jobs:
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}-${{ env.STACK }}
VERSION: ${{ env.VERSION }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_GITHUB_AUTH_TOKEN }}"}}'
with:
push: true
files: |