name: Build docker image on: workflow_call: inputs: major-version: required: true type: number minor-version: required: true type: number revision-version: required: true type: number image-name: required: true type: string dockerfile: type: string default: Dockerfile workspace-path: type: string required: true jobs: build-image: steps: - name: Checkout main uses: actions/checkout@v4 - name: Kaniko build uses: aevea/action-kaniko@master with: path: ${{ input.workspace-path }} build_file: ${{ input.dockerfile }} image: ${{ input.image-name }} registry: ${{ vars.GLOBAL_REGISTRY_URL }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} tag: ${{ input.major }}.${{ input.minor }}.${{ input.revision }} cache: true