mirror of
https://github.com/docker/build-push-action
synced 2026-11-30 21:50:17 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75f7dabc19 | ||
|
|
f880985cfc |
@@ -47,9 +47,9 @@ echo "::group::Installing Harbor"
|
|||||||
(
|
(
|
||||||
cd /tmp/harbor
|
cd /tmp/harbor
|
||||||
set -x
|
set -x
|
||||||
sudo -H ./install.sh
|
./install.sh
|
||||||
sleep 10
|
sleep 10
|
||||||
sudo netstat -aptn
|
netstat -aptn
|
||||||
)
|
)
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ echo "::group::Compose config"
|
|||||||
(
|
(
|
||||||
cd /tmp/harbor
|
cd /tmp/harbor
|
||||||
set -x
|
set -x
|
||||||
sudo -H docker compose config
|
docker compose config
|
||||||
)
|
)
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ EOF
|
|||||||
export NEXUS_VERSION
|
export NEXUS_VERSION
|
||||||
|
|
||||||
mkdir -p /tmp/nexus/data
|
mkdir -p /tmp/nexus/data
|
||||||
sudo chown 200:200 /tmp/nexus/data
|
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:$(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"
|
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"
|
||||||
)
|
)
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,9 @@ jobs:
|
|||||||
if: inputs.type == 'local'
|
if: inputs.type == 'local'
|
||||||
env:
|
env:
|
||||||
ID: ${{ inputs.id }}
|
ID: ${{ inputs.id }}
|
||||||
run: bash "./.github/e2e/${ID}/install.sh"
|
run: |
|
||||||
|
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
|
||||||
|
|||||||
@@ -17,16 +17,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write # for Codecov authentication
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test
|
||||||
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
|
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
|
||||||
with:
|
with:
|
||||||
source: .
|
source: .
|
||||||
targets: test
|
targets: test
|
||||||
@@ -35,4 +32,4 @@ jobs:
|
|||||||
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
||||||
with:
|
with:
|
||||||
files: ./coverage/clover.xml
|
files: ./coverage/clover.xml
|
||||||
use_oidc: true
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
@@ -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@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
|
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
|
||||||
with:
|
with:
|
||||||
source: .
|
source: .
|
||||||
targets: build
|
targets: build
|
||||||
|
|||||||
@@ -41,6 +41,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Validate
|
name: Validate
|
||||||
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
|
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
|||||||
@@ -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/build/concepts/context/#git-repositories),
|
By default, this action uses the [Git context](https://docs.docker.com/engine/reference/commandline/build/#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).
|
||||||
|
|
||||||
|
|||||||
+151
-151
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -3674,7 +3674,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
|
|
||||||
The following npm package may be included in this product:
|
The following npm package may be included in this product:
|
||||||
|
|
||||||
- undici@6.28.0
|
- undici@6.29.1
|
||||||
|
|
||||||
This package contains the following license:
|
This package contains the following license:
|
||||||
|
|
||||||
|
|||||||
@@ -5915,9 +5915,9 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"undici@npm:^6.23.0, undici@npm:^6.25.0":
|
"undici@npm:^6.23.0, undici@npm:^6.25.0":
|
||||||
version: 6.28.0
|
version: 6.29.1
|
||||||
resolution: "undici@npm:6.28.0"
|
resolution: "undici@npm:6.29.1"
|
||||||
checksum: 10/672a7a53bd1f6c80edb73b357ab36e98ef9e474024c442aab2b8ea2bc32f1103cab05525c78661ae724f3e1340e23d03efb9730fba28e76218ab0ec52e15d75a
|
checksum: 10/92acb64ec190fe3499dec69830fdfc48e28f6f19627bad7563cfd57c37b4e95379c12b8ac15a2e6a8739eaac358f17503a229c160d3dc8774141b1e270d8aa57
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user