mirror of
https://github.com/docker/build-push-action.git
synced 2026-12-01 15:33:04 +00:00
Compare commits
1 Commits
ci-harbor-
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7317d27643 |
6
.github/e2e/harbor/install.sh
vendored
6
.github/e2e/harbor/install.sh
vendored
@@ -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::"
|
||||||
|
|
||||||
|
|||||||
4
.github/e2e/nexus/install.sh
vendored
4
.github/e2e/nexus/install.sh
vendored
@@ -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::"
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/.e2e-run.yml
vendored
6
.github/workflows/.e2e-run.yml
vendored
@@ -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
|
||||||
@@ -120,7 +122,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Configure AWS credentials
|
name: Configure AWS credentials
|
||||||
if: inputs.provider == 'aws'
|
if: inputs.provider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@cbe3b392738ccf3f987d68400dafcf4b0624a56c # v6.2.4
|
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::175142243308:role/official_gha_cicd
|
role-to-assume: arn:aws:iam::175142243308:role/official_gha_cicd
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|||||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
2
.github/workflows/update-dist.yml
vendored
2
.github/workflows/update-dist.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/validate.yml
vendored
2
.github/workflows/validate.yml
vendored
@@ -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).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user