Compare commits

..
Author SHA1 Message Date
CrazyMax cd3ff47a07 ci(e2e): run registry setup scripts as the runner user
On Ubuntu 26.04, sudo ignores -E and drops the registry settings.
Harbor then listens on its default port while Docker tries to log in
on the port configured by the workflow.

Run the registry setup scripts as the runner user so they inherit the
job environment. Use sudo within the Harbor and Nexus scripts for the
operations that need it.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-11-25 18:06:21 +01:00
CrazyMax 45f22b1c11 Merge pull request #1627 from mikegerber/fix-docs-git-context
docs: Fix link to Git context docs
2026-11-25 17:08:12 +01:00
CrazyMax 30030c2238 Merge pull request #1625 from docker/dependabot/github_actions/docker/bake-action-7.4.0
chore(deps): Bump docker/bake-action from 7.3.0 to 7.4.0
2026-11-25 14:41:02 +01:00
Mike Gerber 6c393912ec docs: Fix link to Git context docs
Signed-off-by: Mike Gerber <mike@mike-gerber.de>
2026-09-23 13:58:32 +02:00
dependabot[bot] 6b4b80ba04 chore(deps): Bump docker/bake-action from 7.3.0 to 7.4.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b...018cb6412ab401ebaa809aa5f85966b74628600f)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 11:52:50 +00:00
11 changed files with 205 additions and 228 deletions
+3 -3
View File
@@ -47,9 +47,9 @@ echo "::group::Installing Harbor"
( (
cd /tmp/harbor cd /tmp/harbor
set -x set -x
./install.sh sudo -H ./install.sh
sleep 10 sleep 10
netstat -aptn sudo netstat -aptn
) )
echo "::endgroup::" echo "::endgroup::"
@@ -58,7 +58,7 @@ echo "::group::Compose config"
( (
cd /tmp/harbor cd /tmp/harbor
set -x set -x
docker compose config sudo -H docker compose config
) )
echo "::endgroup::" echo "::endgroup::"
+2 -2
View File
@@ -36,7 +36,7 @@ EOF
export NEXUS_VERSION export NEXUS_VERSION
mkdir -p /tmp/nexus/data mkdir -p /tmp/nexus/data
chown 200:200 /tmp/nexus/data sudo chown 200:200 /tmp/nexus/data
cp "${SCRIPT_DIR}/docker-compose.yml" /tmp/nexus/docker-compose.yml cp "${SCRIPT_DIR}/docker-compose.yml" /tmp/nexus/docker-compose.yml
echo "::group::Pulling Nexus $NEXUS_VERSION" echo "::group::Pulling Nexus $NEXUS_VERSION"
@@ -82,7 +82,7 @@ echo "::endgroup::"
echo "::group::Change user's password" echo "::group::Change user's password"
( (
set -x set -x
curl --fail -v -k --max-time 10 -u "$REGISTRY_USER:$(cat /tmp/nexus/data/admin.password)" -X PUT -H 'Content-Type: text/plain' -d "$REGISTRY_PASSWORD" "http://$NEXUS_HOST:$NEXUS_PORT/service/rest/v1/security/users/$REGISTRY_USER/change-password" curl --fail -v -k --max-time 10 -u "$REGISTRY_USER:$(sudo cat /tmp/nexus/data/admin.password)" -X PUT -H 'Content-Type: text/plain' -d "$REGISTRY_PASSWORD" "http://$NEXUS_HOST:$NEXUS_PORT/service/rest/v1/security/users/$REGISTRY_USER/change-password"
) )
echo "::endgroup::" echo "::endgroup::"
+1 -3
View File
@@ -93,9 +93,7 @@ jobs:
if: inputs.type == 'local' if: inputs.type == 'local'
env: env:
ID: ${{ inputs.id }} ID: ${{ inputs.id }}
run: | run: bash "./.github/e2e/${ID}/install.sh"
sudo -E bash ./.github/e2e/${ID}/install.sh
sudo chown $(id -u):$(id -g) -R ~/.docker
- -
name: Docker meta name: Docker meta
id: meta id: meta
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- -
name: Test name: Test
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0 uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with: with:
source: . source: .
targets: test targets: test
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
token: ${{ steps.docker-read-app.outputs.token }} token: ${{ steps.docker-read-app.outputs.token }}
- -
name: Build name: Build
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0 uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with: with:
source: . source: .
targets: build targets: build
+1 -1
View File
@@ -41,6 +41,6 @@ jobs:
steps: steps:
- -
name: Validate name: Validate
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0 uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with: with:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
+1 -1
View File
@@ -43,7 +43,7 @@ In the examples below we are also using 3 other actions:
### Git context ### Git context
By default, this action uses the [Git context](https://docs.docker.com/engine/reference/commandline/build/#git-repositories), By default, this action uses the [Git context](https://docs.docker.com/build/concepts/context/#git-repositories),
so you don't need to use the [`actions/checkout`](https://github.com/actions/checkout/) so you don't need to use the [`actions/checkout`](https://github.com/actions/checkout/)
action to check out the repository as this will be done directly by [BuildKit](https://github.com/moby/buildkit). action to check out the repository as this will be done directly by [BuildKit](https://github.com/moby/buildkit).
Generated Vendored
+153 -155
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+4 -4
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+8 -10
View File
@@ -3242,12 +3242,13 @@ terms above.
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @nodable/entities@3.1.0 - @nodable/entities@2.1.0
- binary@0.3.0 - binary@0.3.0
- browserify-zlib@0.1.4 - browserify-zlib@0.1.4
- eastasianwidth@0.2.0 - eastasianwidth@0.2.0
- is-gzip@1.0.0 - is-gzip@1.0.0
- isarray@1.0.0 - isarray@1.0.0
- xml-naming@0.1.0
These packages each contain the following license: These packages each contain the following license:
@@ -3380,7 +3381,7 @@ SOFTWARE.
The following npm package may be included in this product: The following npm package may be included in this product:
- fast-xml-parser@5.12.0 - fast-xml-parser@5.8.0
This package contains the following license: This package contains the following license:
@@ -3470,7 +3471,7 @@ SOFTWARE.
The following npm package may be included in this product: The following npm package may be included in this product:
- strnum@2.5.1 - strnum@2.3.0
This package contains the following license: This package contains the following license:
@@ -3595,7 +3596,7 @@ SOFTWARE.
The following npm package may be included in this product: The following npm package may be included in this product:
- path-expression-matcher@1.6.2 - path-expression-matcher@1.5.0
This package contains the following license: This package contains the following license:
@@ -3623,14 +3624,11 @@ SOFTWARE.
----------- -----------
The following npm packages may be included in this product: The following npm package may be included in this product:
- anynum@1.0.1 - fast-xml-builder@1.2.0
- fast-xml-builder@1.3.1
- is-unsafe@2.0.3
- xml-naming@0.3.0
These packages each contain the following license: This package contains the following license:
MIT License MIT License
+30 -47
View File
@@ -1043,10 +1043,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@nodable/entities@npm:^3.1.0": "@nodable/entities@npm:^2.1.0":
version: 3.1.0 version: 2.1.0
resolution: "@nodable/entities@npm:3.1.0" resolution: "@nodable/entities@npm:2.1.0"
checksum: 10/b07d97b1dac8e0bc8a124ea52cdb6d6a50a8a750592acf540e47c4740a8b96b5add8d9dcce4dfbe74e08b2ab95303c1a2078cf4ba01a085a6de88a879f45576e checksum: 10/355c55e82aebe45d4b962d16530951df51e19e3e63a27ea61ad3260c0807064619b270b9c83db10e8394f42760abd5b7f7c5b5117678c4246ce8364a4aafc637
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2205,13 +2205,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"anynum@npm:^1.0.1":
version: 1.0.1
resolution: "anynum@npm:1.0.1"
checksum: 10/096acef76cc8b9f34d43ec37ae9ba7a3d4e2e8c722a0dd59a78995248a8eb4021713ee91b55de106366ac4eaa47578ceb0fffe9829ef01d78b20f9fd6d412a88
languageName: node
linkType: hard
"archiver-utils@npm:^5.0.0, archiver-utils@npm:^5.0.2": "archiver-utils@npm:^5.0.0, archiver-utils@npm:^5.0.2":
version: 5.0.2 version: 5.0.2
resolution: "archiver-utils@npm:5.0.2" resolution: "archiver-utils@npm:5.0.2"
@@ -3393,29 +3386,28 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"fast-xml-builder@npm:^1.3.1": "fast-xml-builder@npm:^1.2.0":
version: 1.3.1 version: 1.2.0
resolution: "fast-xml-builder@npm:1.3.1" resolution: "fast-xml-builder@npm:1.2.0"
dependencies: dependencies:
path-expression-matcher: "npm:^1.6.2" path-expression-matcher: "npm:^1.5.0"
xml-naming: "npm:^0.3.0" xml-naming: "npm:^0.1.0"
checksum: 10/6e2774b07a089c325dbf9d193325a1bf78592e7f3877dfdb643f4898d89a154aa17054cea7270b8b3cc4a7a1145988b0d8a5a974c7086f0e28a6af22a536f55f checksum: 10/5948add7796879d03b6c779cbb17f2f203a41cdf23dfaaa4789c65078a36376cd0709a6586701e980e3d244ebd5fdb35db1235ccb5e4fb9e9abfd8c51e7b8813
languageName: node languageName: node
linkType: hard linkType: hard
"fast-xml-parser@npm:^5.0.7": "fast-xml-parser@npm:^5.0.7":
version: 5.12.0 version: 5.8.0
resolution: "fast-xml-parser@npm:5.12.0" resolution: "fast-xml-parser@npm:5.8.0"
dependencies: dependencies:
"@nodable/entities": "npm:^3.1.0" "@nodable/entities": "npm:^2.1.0"
fast-xml-builder: "npm:^1.3.1" fast-xml-builder: "npm:^1.2.0"
is-unsafe: "npm:^2.0.3" path-expression-matcher: "npm:^1.5.0"
path-expression-matcher: "npm:^1.6.2" strnum: "npm:^2.3.0"
strnum: "npm:^2.5.1" xml-naming: "npm:^0.1.0"
xml-naming: "npm:^0.3.0"
bin: bin:
fxparser: src/cli/cli.js fxparser: src/cli/cli.js
checksum: 10/86b16fd9f4458350e95b5fcfe0bfe2b76a6c508dcc5fdeda128ecf8ed41f419a7e33acaf2718f2fd7b694392d7e204d242a0fd871368efbfb24f96b457e556d5 checksum: 10/0167d17d5275c95e005639f8fca7b4d88fec3fd013063725280f4e982313b1c798e4565d5ced7f61ce10e8f0d876a1976492cc8ac27da3080915ff549fd00705
languageName: node languageName: node
linkType: hard linkType: hard
@@ -3899,13 +3891,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"is-unsafe@npm:^2.0.3":
version: 2.0.3
resolution: "is-unsafe@npm:2.0.3"
checksum: 10/c3287873db0107ff00933b6cea08bb732479af2fefe3a9fe3f49086e094ba7dc7ce09d3e5ce90417a4d604cf8aaedc74c554257a75e1cacbb93e99460bb732ef
languageName: node
linkType: hard
"isarray@npm:~1.0.0": "isarray@npm:~1.0.0":
version: 1.0.0 version: 1.0.0
resolution: "isarray@npm:1.0.0" resolution: "isarray@npm:1.0.0"
@@ -4908,10 +4893,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"path-expression-matcher@npm:^1.6.2": "path-expression-matcher@npm:^1.5.0":
version: 1.6.2 version: 1.5.0
resolution: "path-expression-matcher@npm:1.6.2" resolution: "path-expression-matcher@npm:1.5.0"
checksum: 10/d7786b170933dd82ed897144daed7d54dbe2e7b7d8684182ee9bf51a966cc92548788e2f49280922202a0186409008d816aefa37ed4650e4038184181a73c4bd checksum: 10/28303bb9ee6831e6df14c10cd3f3f7b2d7c8d7f788d8bdb7440136fd696064c82a3e264999a0764d28e39f698275fc03a5493bec93c57ef4a22566280367dd64
languageName: node languageName: node
linkType: hard linkType: hard
@@ -5647,12 +5632,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"strnum@npm:^2.5.1": "strnum@npm:^2.3.0":
version: 2.5.1 version: 2.3.0
resolution: "strnum@npm:2.5.1" resolution: "strnum@npm:2.3.0"
dependencies: checksum: 10/ce79c86bb2b96f053eb28e14924c13604e22977dcdece9aa914c25e16cc5c4bbe048976fe0b2a4decf08a1e13600b820749cea25463fc0e5fee3078339e0a457
anynum: "npm:^1.0.1"
checksum: 10/97918f9e6a30a9a79b4de616e09778e846f8cbce1230ed67c1b68db06e3baaf8c89e4c255ef6eafb2404b26f2bd59627e94647c2389388e5897e5707dbe98178
languageName: node languageName: node
linkType: hard linkType: hard
@@ -6234,10 +6217,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"xml-naming@npm:^0.3.0": "xml-naming@npm:^0.1.0":
version: 0.3.0 version: 0.1.0
resolution: "xml-naming@npm:0.3.0" resolution: "xml-naming@npm:0.1.0"
checksum: 10/1a09c3f14747bf243d4bbcfdb9917c40e9cbb4b6464f2b9fe6927976770dfa38eedfe94190b5b6db470f22429fd4bda688b1831ca36a769a6745ccb9bb595150 checksum: 10/45abd94ba64a508bda3f4d0b70e49811a3c3542596252c213caf47c858bbe9bba365ebba8eeff68e2a876e22a1bf6855d90cd2019b2f28012cebb167a4df2293
languageName: node languageName: node
linkType: hard linkType: hard