nerdexam
GitHub

GITHUB-ACTIONS · Question #74

As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup scri

Sign in or unlock GITHUB-ACTIONS to reveal the answer and full explanation for question #74. The question stem and answer options stay visible for context.

Author and maintain actions

Question

As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script? A. B. C. D.

Exhibit

GITHUB-ACTIONS question #74 exhibit

Options

  • Aruns: using: 'docker' image: 'Dockerfile' entrypoint: 'main.sh' post: 'cleanup.sh'
  • Bruns: using: 'docker' image: 'Dockerfile' entrypoint: 'main.sh' post-if: 'cleanup.sh'
  • Cruns: using: 'docker' image: 'Dockerfile' entrypoint: 'main.sh' after: 'cleanup.sh'
  • Druns: using: 'docker' image: 'Dockerfile' entrypoint: 'main.sh' post-entrypoint: 'cleanup.sh'

Unlock GITHUB-ACTIONS to see the answer

You've previewed enough free GITHUB-ACTIONS questions. Unlock GITHUB-ACTIONS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#container actions#post entrypoint#cleanup script#action.yml syntax
Full GITHUB-ACTIONS Practice