Skip to content

Commit 5d209c7

Browse files
docs: Update and add steps for node CI (#19858)
1 parent a94e438 commit 5d209c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/language/nodejs/configure-ci-cd.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
2929

3030
4. Create a new [Personal Access Token
3131
(PAT)](/security/for-developers/access-tokens/#create-an-access-token) for Docker Hub. You
32-
can name this token `node-docker`.
32+
can name this token `node-docker`. Make sure access permissions include Read and Write.
3333

34-
5. Add the PAT as a second secret in your GitHub repository, with the name
34+
5. Add the PAT as a second **Repository secrets** in your GitHub repository, with the name
3535
`DOCKERHUB_TOKEN`.
3636

3737
6. In your local repository on your machine, run the following command to change
@@ -43,9 +43,11 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
4343
$ git remote set-url origin https://github.com/your-username/your-repository.git
4444
```
4545

46-
7. Run the following command to push your local repository to GitHub.
46+
7. Run the following commands to stage, commit, and push your local repository to GitHub.
4747

4848
```console
49+
$ git add -A
50+
$ git commit -m "my commit"
4951
$ git push -u origin main
5052
```
5153

@@ -104,6 +106,8 @@ to Docker Hub.
104106
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
105107
```
106108
109+
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
110+
107111
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
108112

109113
## Step three: Run the workflow
@@ -136,4 +140,4 @@ Related information:
136140

137141
Next, learn how you can locally test and debug your workloads on Kubernetes before deploying.
138142

139-
{{< button text="Develop using Kubernetes" url="./deploy.md" >}}
143+
{{< button text="Test your deployment" url="./deploy.md" >}}

0 commit comments

Comments
 (0)