-
Notifications
You must be signed in to change notification settings - Fork 66.9k
Add Docker Image CI workflow #44043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add Docker Image CI workflow #44043
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,18 @@ | ||||||||||||||
| name: Docker Image CI | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: [ "main" ] | ||||||||||||||
| pull_request: | ||||||||||||||
| branches: [ "main" ] | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
|
|
||||||||||||||
| build: | ||||||||||||||
|
|
||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
|
|
||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||
|
||||||||||||||
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@8e8c483e0f71c1f5f6bbf3c5c8ec0e5c0eb0f3f8 # v6.0.1 |
Copilot
AI
Apr 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
steps: is incorrectly indented: the list items (- uses, - name) need to be indented under steps:. As written, this workflow will fail YAML parsing / the steps key will not contain the step list, so the job won’t run.
| - uses: actions/checkout@v4 | |
| - name: Build the Docker image | |
| run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) | |
| - uses: actions/checkout@v4 | |
| - name: Build the Docker image | |
| run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other workflows in this repo and to reduce risk/noise, add an explicit minimal
permissions:block (e.g.contents: read) and gate the job withif: github.repository == 'github/docs-internal' || github.repository == 'github/docs'so forks don’t run this workflow by default.