Compare commits

..

5 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](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 12 additions and 14 deletions

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::"

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::"

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

View File

@@ -35,12 +35,12 @@ jobs:
node-version: ${{ env.NODE_VERSION }} node-version: ${{ env.NODE_VERSION }}
- -
name: Initialize CodeQL name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with: with:
languages: javascript-typescript languages: javascript-typescript
build-mode: none build-mode: none
- -
name: Perform CodeQL Analysis name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with: with:
category: "/language:javascript-typescript" category: "/language:javascript-typescript"

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

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

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 }}

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).