update CI to work with composer-auth

This commit is contained in:
Ronald A. Richardson
2023-08-02 18:25:19 +08:00
parent 475c03c077
commit 4db3677b6d

View File

@@ -22,8 +22,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Prepare Composer Auth Secret
run: |
if [[ -n "${{ secrets._GITHUB_AUTH_TOKEN }}" ]]; then
echo '{"github-oauth": {"github.com": "'${{ secrets._GITHUB_AUTH_TOKEN }}'"}}' > composer-auth.json
else
echo '{}' > composer-auth.json
fi
- name: Build and Release
uses: docker/bake-action@v2
with:
files: |
./docker-bake.hcl
secrets: |
composer_auth=./composer-auth.json