0
0
Dockerdevops~5 mins

GitHub Actions with Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is GitHub Actions?
GitHub Actions is a tool that helps automate tasks like testing and deploying code when you push changes to your GitHub repository.
Click to reveal answer
beginner
How does Docker fit into GitHub Actions?
Docker lets you package your app and its environment into a container. GitHub Actions can build and run these Docker containers automatically during workflows.
Click to reveal answer
beginner
What is a workflow file in GitHub Actions?
A workflow file is a YAML file in your repo that tells GitHub Actions what steps to run and when, like building a Docker image after code changes.
Click to reveal answer
intermediate
What does the 'docker/build-push-action' do in a GitHub Actions workflow?
It builds a Docker image from your code and can push it to a container registry like Docker Hub automatically.
Click to reveal answer
beginner
Why use GitHub Actions with Docker instead of manual builds?
It saves time by automating builds and tests, ensures consistency, and helps catch errors early before deploying your app.
Click to reveal answer
What file format is used to define GitHub Actions workflows?
AXML
BJSON
CTXT
DYAML
Which GitHub Actions step is commonly used to build and push Docker images?
Aactions/checkout
Bactions/setup-node
Cdocker/build-push-action
Dactions/upload-artifact
What triggers a GitHub Actions workflow by default?
AA push to the repository
BOpening a new issue
CDeleting a branch
DViewing the repository
Why use Docker containers in CI/CD pipelines?
ATo slow down the build process
BTo run code in a consistent environment
CTo avoid using version control
DTo delete code automatically
Where can Docker images be pushed from GitHub Actions?
ADocker Hub or other container registries
BGitHub Issues
CGitHub Wiki
DLocal text files
Explain how you would set up a GitHub Actions workflow to build and push a Docker image when code is pushed.
Think about the steps from code push to Docker image upload.
You got /5 concepts.
    Describe the benefits of using GitHub Actions with Docker in a software project.
    Consider how automation and containers improve development.
    You got /5 concepts.