Skip to content

Error message for failing to create model in model-equation endpoint … #5

Error message for failing to create model in model-equation endpoint …

Error message for failing to create model in model-equation endpoint … #5

---
# Automatically build Docker images using a cloud builder and publish them to a
# container registry using HCL Bake file.
name: Build Docker Images using Cloud Builder
on:
push:
branches: ['main']
tags: ['*']
jobs:
bake-target:
name: Determine bake target
runs-on: ubuntu-22.04 # don't use the big runners for this small step
outputs:
target: ${{ steps.generate.outputs.bake_target }}
steps:
- name: Determine target
id: generate
run: |
if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
TGT=default
else
TGT=prod
fi
echo "$TGT"
echo "bake_target=${TGT,,}" >> ${GITHUB_OUTPUT}
- name: Show Generated Target
run: echo ${{ steps.generate.outputs.bake_target }}
# Build and Publish all targets associated with specified group
bake:

Check failure on line 35 in .github/workflows/publish-cloud-builder.yaml

View workflow run for this annotation

GitHub Actions / Build Docker Images using Cloud Builder

Invalid workflow file

The workflow is not valid. .github/workflows/publish-cloud-builder.yaml (Line: 35, Col: 3): Error calling workflow 'darpa-askem/.github/.github/workflows/bake-publish-cloud-builder.yaml@main'. The nested job 'build-push' is requesting 'packages: write', but is only allowed 'packages: read'.
needs:
- bake-target
uses: darpa-askem/.github/.github/workflows/bake-publish-cloud-builder.yaml@main
with:
file: 'docker/docker-bake.hcl'
group: ${{ needs.bake-target.outputs.target }}
registry: 'ghcr.io'
organization: ${{ github.repository_owner }}
secrets:
username: ${{ secrets.DOCKER_CLOUD_BUILD_USERNAME }}
token: ${{ secrets.DOCKER_CLOUD_BUILD_TOKEN }}
endpoint: "${{ secrets.DOCKER_CLOUD_BUILD_ENDPOINT }}"
# Execute simulation-integration reporting
simulation-integration:
runs-on: ubuntu-latest
needs:
- bake
steps:
- name: Report
env:
GITHUB_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN }}
run: |
gh workflow run report.yaml --repo DARPA-ASKEM/simulation-integration --ref main