File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 default : " linux/amd64"
5353 type : string
5454 secrets :
55+ dockerhub-username :
56+ required : true
57+ dockerhub-password :
58+ required : true
5559 username :
5660 required : false
5761 password :
@@ -104,6 +108,12 @@ jobs:
104108 uses : docker/setup-qemu-action@v4
105109
106110 - name : Login to Docker Hub
111+ uses : docker/login-action@v4
112+ with :
113+ username : ${{ secrets.dockerhub-username }}
114+ password : ${{ secrets.dockerhub-password }}
115+
116+ - name : Login to Docker Registry
107117 if : ${{ inputs.push }}
108118 uses : docker/login-action@v4
109119 with :
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ Perfect for teams looking to streamline their containerization workflow with min
4040
4141## 🔐 Secrets
4242
43- | Name | Description | Required |
44- | ---------- | --------------------------------------------------------------------------------------------------- | -------- |
45- | ` username ` | Username for Docker Registry authentication | Yes |
46- | ` password ` | Password or Personal Access Token for Docker registry authentication (with appropriate permissions) | Yes |
43+ | Name | Description | Required |
44+ | -------------------- | --------------------------------------------------------------------------------------------------- | ------------------ |
45+ | ` dockerhub-username ` | Username for Docker Hub authentication | Yes |
46+ | ` dockerhub-password ` | Token for Docker Hub authentication (with read-only permissions) | Yes |
47+ | ` username ` | Username for Docker Registry authentication | When ` push: true ` |
48+ | ` password ` | Password or Personal Access Token for Docker registry authentication (with appropriate permissions) | When ` push: true ` |
4749
4850## 💻 Example Usage
4951
7476 BUILD_VERSION=1.0.0
7577 NODE_ENV=production
7678 secrets :
79+ dockerhub-username : ${{ secrets.DOCKERHUB_USERNAME }}
80+ dockerhub-password : ${{ secrets.DOCKERHUB_TOKEN_PULL_ONLY }}
7781 username : ${{ secrets.DOCKERHUB_USERNAME }}
7882 password : ${{ secrets.DOCKERHUB_PAT }}
7983` ` `
You can’t perform that action at this time.
0 commit comments