Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.19 KB

File metadata and controls

44 lines (30 loc) · 1.19 KB

GitHub Secrets Setup

How to configure secrets for CI/CD workflows.

Required Secrets

Secret Description
DOCKERHUB_USERNAME Docker Hub username
DOCKERHUB_TOKEN Docker Hub access token

Setup Steps

1. Create Docker Hub Access Token

  1. Go to Docker HubAccount SettingsSecurity
  2. Click New Access Token
  3. Name it (e.g., github-actions)
  4. Select Read & Write permissions
  5. Copy the token (shown only once)

Docs: Docker Hub Access Tokens

2. Add Secrets to GitHub Repository

  1. Go to your GitHub repository → SettingsSecrets and variablesActions

  2. Click New repository secret

  3. Add each secret:

    Name Value
    DOCKERHUB_USERNAME Your Docker Hub username
    DOCKERHUB_TOKEN Access token from step 1

Docs: GitHub Encrypted Secrets

Verify Setup

After pushing a tag, check Actions tab in GitHub to see workflow status.

git tag v0.1.0
git push origin v0.1.0