D3: Building Docker & Composite Actions
GH-200 GitHub Actions exam practice questions · 10 flashcards
Question
Docker action Dockerfile requirements?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Building Docker & Composite Actions practice questions and answers
- Docker action Dockerfile requirements?Don't use WORKDIR override assumptions; GITHUB_WORKSPACE mounted; avoid USER changes that break permissions.
- Passing inputs to Docker action?args in action.yml using ${{ inputs.x }} or INPUT_ env vars.
- Prebuilt image for Docker action?image: docker://ghcr.io/org/image:tag for faster startup.
- Docker action OS limitation?Linux runners only.
- Composite step shell requirement?Each run step must specify shell:.
- Using other actions inside composite?Supported via uses: steps.
- Composite action path reference?${{ github.action_path }} to access action files.
- Composite outputs?Map from inner step outputs.
- Composite vs reusable workflow scope?Composite runs within caller's job; reusable workflow runs as separate jobs.
- Scenario: wrap 5 repeated setup steps used across many jobs. Type?Composite action.