Create Access Tokens
From dockerhub page
-> Account Settings
-> Security
-> New Access Token
How to Make github action Secrets
Frin Repository page
-> Settings
-> Secrets
-> Actions
Name matching
jobs:
test-lint:
name: Test and Lint
runs-on: ubuntu-22.04
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: dockerhub name
password: access token