test build with github auth token depn packages

This commit is contained in:
Ronald A. Richardson
2023-08-02 12:07:22 +08:00
parent c68ec787c1
commit c217d6dc44
4 changed files with 10 additions and 12 deletions

View File

@@ -46,16 +46,20 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Prepare Composer Auth Secret
run: echo '${{ secrets.COMPOSER_AUTH }}' > composer-auth.json
- name: Build and Release
uses: docker/bake-action@v2
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}-${{ env.STACK }}
VERSION: ${{ env.VERSION }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets._GITHUB_AUTH_TOKEN }}"}}'
with:
push: true
files: |
./docker-bake.hcl
secrets: |
composer_auth=./composer-auth.json
- name: Download ecs-tool
run: |