Skip to content
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

build: bump gha example versions #20246

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/build/cache/backends/gha.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ For example:

```yaml
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -141,7 +141,7 @@ action. You can also set the `ghtoken` parameter manually using the

```yaml
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
6 changes: 3 additions & 3 deletions content/build/ci/github-actions/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
images: ${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
images: ${{ env.IMAGE_NAME }}

- name: Build
uses: docker/bake-action@v4
uses: docker/bake-action@v5
with:
files: |
./docker-bake.hcl
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
Expand Down
4 changes: 2 additions & 2 deletions content/build/ci/github-actions/attestations.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
images: ${{ env.IMAGE_NAME }}

- name: Build and push image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
images: ${{ env.IMAGE_NAME }}

- name: Build and push image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
sbom: true
Expand Down
10 changes: 5 additions & 5 deletions content/build/ci/github-actions/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
cache-source: go-build-cache

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
6 changes: 3 additions & 3 deletions content/build/ci/github-actions/configure-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
buildkitd-flags: --debug

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
```
Expand Down Expand Up @@ -324,14 +324,14 @@ jobs:
id: builder2

- name: Build against builder1
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
builder: ${{ steps.builder1.outputs.name }}
context: .
target: mytarget1

- name: Build against builder2
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
builder: ${{ steps.builder2.outputs.name }}
context: .
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/copy-image-registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/export-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
load: true
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/local-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
driver-opts: network=host

- name: Build and push to local registry
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/manage-tags-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
6 changes: 3 additions & 3 deletions content/build/ci/github-actions/multi-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:

- name: Build and push by digest
id: build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.platform }}
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:

- name: Build
id: bake
uses: docker/bake-action@v4
uses: docker/bake-action@v5
with:
files: |
./docker-bake.hcl
Expand Down
10 changes: 5 additions & 5 deletions content/build/ci/github-actions/named-contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
build-contexts: |
Expand Down Expand Up @@ -79,15 +79,15 @@ jobs:
driver: docker

- name: Build base image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./base
file: ./base/Dockerfile
load: true
tags: my-base-image:latest

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
build-contexts: |
Expand Down Expand Up @@ -137,15 +137,15 @@ jobs:
driver-opts: network=host

- name: Build base image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./base
file: ./base/Dockerfile
tags: localhost:5000/my-base-image:latest
push: true

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
build-contexts: |
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/push-multi-registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
8 changes: 4 additions & 4 deletions content/build/ci/github-actions/reproducible-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: user/app:latest
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/bake-action@v4
uses: docker/bake-action@v5
env:
SOURCE_DATE_EPOCH: 0
```
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: user/app:latest
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV

- name: Build
uses: docker/bake-action@v4
uses: docker/bake-action@v5
env:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
```
Expand Down
6 changes: 3 additions & 3 deletions content/build/ci/github-actions/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
private-key-name: github-ppk

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
ssh: default
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
private-key-name: github-ppk

- name: Build
uses: docker/bake-action@v4
uses: docker/bake-action@v5
with:
set: |
*.ssh=default
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/share-image-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: myimage:latest
Expand Down
4 changes: 2 additions & 2 deletions content/build/ci/github-actions/test-before-push.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and export to Docker
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
load: true
Expand All @@ -53,7 +53,7 @@ jobs:
docker run --rm ${{ env.TEST_TAG }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion content/build/ci/github-actions/update-dockerhub-desc.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
2 changes: 1 addition & 1 deletion content/build/cloud/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
endpoint: "<ORG>/default"
install: true
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: "<IMAGE>"
Expand Down
4 changes: 2 additions & 2 deletions content/includes/gha-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion content/language/cpp/configure-ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ to Docker Hub.
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
Loading