Skip to content

ci: fox inputs for release-with-docker #2

ci: fox inputs for release-with-docker

ci: fox inputs for release-with-docker #2

name: Automatic release with Dockerfile
# Use this one for default pre-commit pre-installed tools and a standard dockerfile
on:
push:
branches:
- main
workflow_call:
inputs:
image_name:
type: string
dockerhub_username:
required: true
type: string
dockerfile:
type: string
default: Dockerfile
context:
type: string
default: .
secrets:
GH_TOKEN:
required: true
dockerhub_token:
required: true
jobs:
pre-commit:
uses: geokrety/geokrety-gha-workflows/.github/workflows/pre-commit.yml@main
docker:
needs: pre-commit
uses: geokrety/geokrety-gha-workflows/.github/workflows/docker-build.yml@main
with:
image_name: ${{ inputs.image_name }}
dockerhub_username: ${{ inputs.dockerhub_username }}
dockerhub_token: ${{ secrets.dockerhub_token }}

Check failure on line 37 in .github/workflows/release-with-docker.yml

View workflow run for this annotation

GitHub Actions / Automatic release with Dockerfile

Invalid workflow file

The workflow is not valid. .github/workflows/release-with-docker.yml (Line: 37, Col: 24): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.dockerhub_token
dockerfile: ${{ inputs.dockerfile }}
context: ${{ inputs.context }}
secrets:
dockerhub_token: ${{ secrets.dockerhub_token }}
build-release:
uses: geokrety/geokrety-gha-workflows/.github/workflows/semantic-release.yml@main
needs: docker
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}