-
Notifications
You must be signed in to change notification settings - Fork 616
Upgrade GitHub Actions to latest versions #1792
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?
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 |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ jobs: | |
|
|
||
| # Build and push using Docker Bake | ||
| - name: Build and push image | ||
| uses: docker/bake-action@v5 | ||
| uses: docker/bake-action@v6 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: docker/bake-action v6.0.0 breaking change (release notes):
Sources: [1] [2] 🏁 Script executed: cat -n .github/workflows/production-build.yaml | head -120 | tail -50Repository: Zipstack/unstract Length of output: 2580 🌐 Web query:
💡 Result: In 1) Use the workflow workspace (local path context)- uses: actions/checkout@v4
- uses: docker/bake-action@v6
with:
source: .
push: trueThis switches from the default Git context to the checked-out files. [1] 2) Use the default Git context, but from a subdirectory- uses: docker/bake-action@v6
with:
source: "{{defaultContext}}:mysubdir"
3) Set/override the context inside the Bake file (recommended for multi-target builds)In target "app" {
context = "./app"
}
4) Override
|
||
| env: | ||
| VERSION: ${{ env.DOCKER_VERSION_TAG }} | ||
| with: | ||
|
|
@@ -274,7 +274,7 @@ jobs: | |
| # Send summary notification to Slack | ||
| - name: Send Slack summary notification | ||
| if: always() | ||
| uses: slackapi/slack-github-action@v2.1.0 | ||
| uses: slackapi/slack-github-action@v2.1.1 | ||
| with: | ||
| webhook-type: incoming-webhook | ||
| payload: | | ||
|
|
||
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.
🧩 Analysis chain
🌐 Web query:
docker/build-push-action v6 breaking changes release notes💡 Result:
Key v6 change in
docker/build-push-action(introduced in v6.0.0, June 17, 2024) is that the action now exports a “build record” and generates a GitHub Actions job “build summary” by default. This can be “breaking” if your workflow later usesactions/download-artifactwith default settings (downloads all artifacts), because you must exclude the build-record artifacts (*.dockerbuild) or the download step can fail. You can also disable the feature via env vars (e.g.,DOCKER_BUILD_SUMMARY=false; and, separately,DOCKER_BUILD_RECORD_UPLOAD=false). [1][2]Sources (release notes / docs): [1][2]
🌐 Web query:
docker/build-push-action@v6 inputs context file platforms push tags cache-from cache-to💡 Result:
docker/build-push-action@v6inputs (requested ones)context(String): Build context (PATH or URL). Default is the Git context. [1]file(String): Path to the Dockerfile. Default:{context}/Dockerfile. [1]platforms(List/CSV): Target platforms to build for (e.g.,linux/amd64,linux/arm64). [1]push(Bool): Shorthand for--output=type=registry(push to registry). Default:false. [1]tags(List/CSV): Image tags to apply (newline-delimited or comma-delimited). [1]cache-from(List): External cache sources (e.g.,type=gha,type=local,src=...). [1][2]cache-to(List): Cache export destinations (e.g.,type=gha,mode=max,type=local,dest=...,mode=max). [1][2]Sources: docker/build-push-action README inputs table [1]; Docker Docs “Cache management” examples for
cache-from/cache-to[2].[1] (github.com)
[2] (docs.docker.com)
Citations:
Check for downstream
actions/download-artifactusage with docker/build-push-action@v6 upgradeThe upgrade to v6 introduces a breaking change: the action now exports build records and generates GitHub Actions job summaries by default. This is only problematic if your workflow uses
actions/download-artifactwith default settings afterward—it may fail trying to download*.dockerbuildartifacts. Either exclude the build-record artifacts in the download step or disable the feature via environment variables (DOCKER_BUILD_SUMMARY=falseandDOCKER_BUILD_RECORD_UPLOAD=false).🤖 Prompt for AI Agents