- A GitHub account to fork the repository and configure GitHub Actions.
- A Docker account to create and manage Docker images.
- Access to a web browser and internet connection.
You can download the presentation slides here.
- Navigate to the workshop-github-actions repository.
- Click the Fork button in the top-right corner of the page.
- In the Create a fork dialog:
- Select your GitHub account or organization where you want to create the fork.
- Optionally, provide a name for the forked repository (default is
workshop-github-actions). - Click Create fork.
-
Docker Username:
Your Docker username is the name you use to log in to Docker Hub. -
Docker Personal Access Token:
- Log in to Docker Hub.
- Navigate to your account settings.
- Go to Personal Access Token
- Click on Create Access Token.
- Provide a name for the token (e.g.,
github-actions-token). - Select the desired expiration date for the token.
- Under Access Permissions, ensure you grant read & write access to repositories.
- Click Generate and copy the token.
Note: Make sure to save the token securely as it will not be shown again.
- Go to your GitHub repository.
- Click on the Settings tab.
- In the left sidebar, select Secrets and variables > Actions.
- Click the New repository secret button.
- Add the following secrets:
DOCKER_PAT: Your Docker Personal Access Token we generated above.
- Move from the Secrets tab to the Variables tab
- Click the New repository variable button.
- Add the following variables:
DOCKER_USER: Your Docker username.BASE_OS:ubuntu-24.04
- Go to the
Actionspage for your GitHub repository. - Trigger the
image-build.ymlworkflow manually:- The workflow is located at
.github/workflows/image-build.yml - From the
Actionspage, click Run workflow.
- The workflow is located at
- Monitor the workflow execution:
- Check the progress and logs in the Actions tab.
- Ensure the workflow completes successfully without errors.
Once the workflow finishes, your multi-architecture Docker images will be built and pushed to Docker Hub.