Skip to content

Pass secrets to called worflow #3

Pass secrets to called worflow

Pass secrets to called worflow #3

name: Build and push CKAN 2.11 images
on: push
jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-docker-publish.yml
with:
ckan-major-version: "2.11"
ckan-version: "2.11"
# TODO: minor version
base-tags: '["ckan/ckan-base:2.11", "ckan/ckan-base:2.11-py3.10"]'
dev-tags: '["ckan/ckan-dev:2.11", "ckan/ckan-dev:2.11-py3.10"]'
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}

Check failure on line 15 in .github/workflows/publish-docker-2.11.yml

View workflow run for this annotation

GitHub Actions / Build and push CKAN 2.11 images

Invalid workflow file

The workflow is not valid. .github/workflows/publish-docker-2.11.yml (Line: 15, Col: 27): Invalid secret, DOCKERHUB_USERNAME is not defined in the referenced workflow. .github/workflows/publish-docker-2.11.yml (Line: 16, Col: 24): Invalid secret, DOCKERHUB_TOKEN is not defined in the referenced workflow.
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}