- 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_USER
: Your Docker username.DOCKER_PAT
: Your Docker Personal Access Token we generated above.
- Go to the
Actions
page for your GitHub repository. - Trigger the
image-build.yml
workflow manually:- The workflow is located at
.github/workflows/image-build.yml
- From the
Actions
page, 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.