scality / spark

Apache License 2.0
3 stars 0 forks source link

include environment in caller and inherit secrets for callled/reusable #42

Closed TrevorBenson closed 11 months ago

TrevorBenson commented 11 months ago

Even though on workflow_dispatch the environment packages appears to populate the secrets, when called as a re-usable workflow the registry login says there are no user/password

Run docker/login-action@v2.1.0
  with:
    registry: registry.scality.com
    ecr: auto
    logout: true
  env:
    image_path: spark-dev/deployment
    staging_path: /home/runner/work/spark/spark/staging
    registry: registry.scality.com
    img: fieldreportservice
    image: registry.scality.com/spark-dev/deployment
    staging_archive: spark-offline-archive-0.1.1_auto_tag_test-prerelease.run
Error: Username and password required

Adding the environment to the primary workflow, and then setting secret: inherit to pass them to the re-usable workflow.