Compare commits

..

7 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
CrazyMax
562e519479 Merge pull request #1641 from crazy-max/ci-codecov-oidc
ci: use OIDC for Codecov uploads
2026-11-05 17:24:26 +01:00
CrazyMax
5c9b57d629 ci: use OIDC for Codecov uploads
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-11-05 17:09:24 +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](d3418bd7d0...018cb6412a)

---
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
8 changed files with 17 additions and 16 deletions

View File

@@ -47,9 +47,9 @@ echo "::group::Installing Harbor"
(
cd /tmp/harbor
set -x
./install.sh
sudo -H ./install.sh
sleep 10
netstat -aptn
sudo netstat -aptn
)
echo "::endgroup::"
@@ -58,7 +58,7 @@ echo "::group::Compose config"
(
cd /tmp/harbor
set -x
docker compose config
sudo -H docker compose config
)
echo "::endgroup::"

View File

@@ -36,7 +36,7 @@ EOF
export NEXUS_VERSION
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
echo "::group::Pulling Nexus $NEXUS_VERSION"
@@ -82,7 +82,7 @@ echo "::endgroup::"
echo "::group::Change user's password"
(
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::"

View File

@@ -93,9 +93,7 @@ jobs:
if: inputs.type == 'local'
env:
ID: ${{ inputs.id }}
run: |
sudo -E bash ./.github/e2e/${ID}/install.sh
sudo chown $(id -u):$(id -g) -R ~/.docker
run: bash "./.github/e2e/${ID}/install.sh"
-
name: Docker meta
id: meta

View File

@@ -17,13 +17,16 @@ on:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for Codecov authentication
steps:
-
name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Test
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with:
source: .
targets: test
@@ -32,4 +35,4 @@ jobs:
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true

View File

@@ -37,7 +37,7 @@ jobs:
token: ${{ steps.docker-read-app.outputs.token }}
-
name: Build
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with:
source: .
targets: build

View File

@@ -41,6 +41,6 @@ jobs:
steps:
-
name: Validate
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
with:
targets: ${{ matrix.target }}

View File

@@ -43,7 +43,7 @@ In the examples below we are also using 3 other actions:
### 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/)
action to check out the repository as this will be done directly by [BuildKit](https://github.com/moby/buildkit).

View File

@@ -5998,8 +5998,8 @@ __metadata:
linkType: hard
"vite@npm:^6.0.0 || ^7.0.0":
version: 7.3.7
resolution: "vite@npm:7.3.7"
version: 7.3.6
resolution: "vite@npm:7.3.6"
dependencies:
esbuild: "npm:^0.27.0 || ^0.28.0"
fdir: "npm:^6.5.0"
@@ -6048,7 +6048,7 @@ __metadata:
optional: true
bin:
vite: bin/vite.js
checksum: 10/a4ff9858afbb83a882cd79809d32cc0dda26d442fd2c6b230f73db988d770a6269b78b8d7327a79464c424589dc9c511af4223e8eba3189d115a925ad2585b16
checksum: 10/6fcbadb1a409990e1bbd4ff0ff41e763c87049228cdc407984bdca40b96ab32de0f1f70fa62fb1f3ca001a5b90accbbe22ddfad5cc436855058357b3f2141d3b
languageName: node
linkType: hard