Compare commits
3
Commits
trunk
...
chore/pin-test2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bfa688672 | ||
|
|
1fe7af0453 | ||
|
|
f0391a4af8 |
No files matched your search
@@ -39,7 +39,7 @@ jobs:
|
|||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Inputs reach the shell via env only, and are regex-checked before use.
|
# Inputs reach the shell via env only, and are regex-checked before use.
|
||||||
- name: Validate inputs
|
- name: Validate inputs
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
echo "attach arm64 to ${IN_IMAGE}:php${IN_PHPVER} (force=${IN_FORCE:-false})"
|
echo "attach arm64 to ${IN_IMAGE}:php${IN_PHPVER} (force=${IN_FORCE:-false})"
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -104,13 +104,13 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
# (needs the buildx plugin, hence after the Buildx setup) Cheap pre-check BEFORE the long build: tag exists, has exactly one amd64 entry,
|
# (needs the buildx plugin, hence after the Buildx setup) Cheap pre-check BEFORE the long build: tag exists, has exactly one amd64 entry,
|
||||||
# and has no arm64 entry yet (exit 3 otherwise). Writes nothing. The index digest read here
|
# and has no arm64 entry yet (exit 3 otherwise). Writes nothing. The index digest read here
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
- name: Build arm64 (push by digest)
|
- name: Build arm64 (push by digest)
|
||||||
id: arm64
|
id: arm64
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./${{ steps.v.outputs.dockerfile }}
|
file: ./${{ steps.v.outputs.dockerfile }}
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Runner images differ on whether they are root and whether sudo exists.
|
# Runner images differ on whether they are root and whether sudo exists.
|
||||||
- name: Install shellcheck
|
- name: Install shellcheck
|
||||||
@@ -152,7 +152,7 @@ jobs:
|
|||||||
shared_ols: ${{ steps.plan.outputs.shared_ols }}
|
shared_ols: ${{ steps.plan.outputs.shared_ols }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
- name: Plan legs
|
- name: Plan legs
|
||||||
id: plan
|
id: plan
|
||||||
@@ -179,7 +179,7 @@ jobs:
|
|||||||
phpver: ${{ fromJSON(needs.plan.outputs.cac) }}
|
phpver: ${{ fromJSON(needs.plan.outputs.cac) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -221,7 +221,7 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
@@ -230,7 +230,7 @@ jobs:
|
|||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -240,7 +240,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
||||||
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
echo "min=${min}" >> "$GITHUB_OUTPUT"
|
echo "min=${min}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -283,7 +283,7 @@ jobs:
|
|||||||
# created by the assemble step below.
|
# created by the assemble step below.
|
||||||
- name: Build amd64 (push by digest)
|
- name: Build amd64 (push by digest)
|
||||||
id: amd64
|
id: amd64
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -303,7 +303,7 @@ jobs:
|
|||||||
id: arm64
|
id: arm64
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -324,7 +324,7 @@ jobs:
|
|||||||
if: steps.arm64.outcome == 'failure'
|
if: steps.arm64.outcome == 'failure'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -375,7 +375,7 @@ jobs:
|
|||||||
phpver: ${{ fromJSON(needs.plan.outputs.cac_fpm) }}
|
phpver: ${{ fromJSON(needs.plan.outputs.cac_fpm) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -417,7 +417,7 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
@@ -426,7 +426,7 @@ jobs:
|
|||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -436,7 +436,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
||||||
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
||||||
@@ -468,7 +468,7 @@ jobs:
|
|||||||
echo "min=${min}" >> "$GITHUB_OUTPUT"
|
echo "min=${min}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -479,7 +479,7 @@ jobs:
|
|||||||
# created by the assemble step below.
|
# created by the assemble step below.
|
||||||
- name: Build amd64 (push by digest)
|
- name: Build amd64 (push by digest)
|
||||||
id: amd64
|
id: amd64
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.fpm
|
file: ./Dockerfile.fpm
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -500,7 +500,7 @@ jobs:
|
|||||||
id: arm64
|
id: arm64
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.fpm
|
file: ./Dockerfile.fpm
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -522,7 +522,7 @@ jobs:
|
|||||||
if: steps.arm64.outcome == 'failure'
|
if: steps.arm64.outcome == 'failure'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.fpm
|
file: ./Dockerfile.fpm
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -575,7 +575,7 @@ jobs:
|
|||||||
phpver: ${{ fromJSON(needs.plan.outputs.cac_litespeed) }}
|
phpver: ${{ fromJSON(needs.plan.outputs.cac_litespeed) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -617,14 +617,14 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
|
|
||||||
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
||||||
# so the mirror is configured on the builder; BuildKit itself still falls
|
# so the mirror is configured on the builder; BuildKit itself still falls
|
||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -634,7 +634,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
||||||
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
||||||
@@ -668,7 +668,7 @@ jobs:
|
|||||||
echo "php=${php}" >> "$GITHUB_OUTPUT"
|
echo "php=${php}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -692,7 +692,7 @@ jobs:
|
|||||||
./scripts/php-emergency-guard.sh "$ref" "$NEW_PHP"
|
./scripts/php-emergency-guard.sh "$ref" "$NEW_PHP"
|
||||||
|
|
||||||
- name: Build and Push LiteSpeed Image
|
- name: Build and Push LiteSpeed Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.litespeed
|
file: ./Dockerfile.litespeed
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -733,7 +733,7 @@ jobs:
|
|||||||
phpver: ${{ fromJSON(needs.plan.outputs.cac_lsphp) }}
|
phpver: ${{ fromJSON(needs.plan.outputs.cac_lsphp) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -775,14 +775,14 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
|
|
||||||
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
||||||
# so the mirror is configured on the builder; BuildKit itself still falls
|
# so the mirror is configured on the builder; BuildKit itself still falls
|
||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -792,7 +792,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
# Per-run cache-bust value. Each job's buildx builder is created fresh by
|
||||||
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
# setup-buildx-action (no cache-from/cache-to here), so today nothing is
|
||||||
@@ -826,7 +826,7 @@ jobs:
|
|||||||
echo "php=${php}" >> "$GITHUB_OUTPUT"
|
echo "php=${php}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -850,7 +850,7 @@ jobs:
|
|||||||
./scripts/php-emergency-guard.sh "$ref" "$NEW_PHP"
|
./scripts/php-emergency-guard.sh "$ref" "$NEW_PHP"
|
||||||
|
|
||||||
- name: Build and Push lsphp Image
|
- name: Build and Push lsphp Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.lsphp
|
file: ./Dockerfile.lsphp
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -876,7 +876,7 @@ jobs:
|
|||||||
timeout-minutes: 80
|
timeout-minutes: 80
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -918,7 +918,7 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
@@ -927,7 +927,7 @@ jobs:
|
|||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -937,10 +937,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -951,7 +951,7 @@ jobs:
|
|||||||
# created by the assemble step below.
|
# created by the assemble step below.
|
||||||
- name: Build amd64 (push by digest)
|
- name: Build amd64 (push by digest)
|
||||||
id: amd64
|
id: amd64
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.shared-httpd
|
file: ./Dockerfile.shared-httpd
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -969,7 +969,7 @@ jobs:
|
|||||||
id: arm64
|
id: arm64
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 25
|
timeout-minutes: 25
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.shared-httpd
|
file: ./Dockerfile.shared-httpd
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -988,7 +988,7 @@ jobs:
|
|||||||
if: steps.arm64.outcome == 'failure'
|
if: steps.arm64.outcome == 'failure'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 25
|
timeout-minutes: 25
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.shared-httpd
|
file: ./Dockerfile.shared-httpd
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -1024,7 +1024,7 @@ jobs:
|
|||||||
PHPVER: "83"
|
PHPVER: "83"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
# Base image pinned by DIGEST, looked up directly at Docker Hub (never via
|
||||||
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
# the pkg-cache mirror), so the mirror can only serve content-addressed
|
||||||
@@ -1066,14 +1066,14 @@ jobs:
|
|||||||
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
echo "mirror=${mirror}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
|
|
||||||
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
# BuildKit (docker-container driver) ignores dockerd's registry-mirrors,
|
||||||
# so the mirror is configured on the builder; BuildKit itself still falls
|
# so the mirror is configured on the builder; BuildKit itself still falls
|
||||||
# back to Docker Hub if the mirror stops answering mid-run.
|
# back to Docker Hub if the mirror stops answering mid-run.
|
||||||
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
- name: Set up Docker Buildx (Docker Hub via pkg-cache mirror)
|
||||||
if: steps.pkgcache.outputs.mirror != ''
|
if: steps.pkgcache.outputs.mirror != ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
with:
|
with:
|
||||||
buildkitd-config-inline: |
|
buildkitd-config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
@@ -1083,17 +1083,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.pkgcache.outputs.mirror == ''
|
if: steps.pkgcache.outputs.mirror == ''
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push Shared OLS Image
|
- name: Build and Push Shared OLS Image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ./Dockerfile.shared-ols
|
file: ./Dockerfile.shared-ols
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: steps.t.outputs.skip == '0'
|
if: steps.t.outputs.skip == '0'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
|
||||||
# sha256 of php-X.Y.Z.tar.xz from php.net's own releases JSON. The build
|
# sha256 of php-X.Y.Z.tar.xz from php.net's own releases JSON. The build
|
||||||
# re-verifies it AND the OpenPGP signature; this step only refuses early
|
# re-verifies it AND the OpenPGP signature; this step only refuses early
|
||||||
@@ -135,17 +135,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.t.outputs.skip == '0'
|
if: steps.t.outputs.skip == '0'
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
|
||||||
- name: Set up QEMU (arm64)
|
- name: Set up QEMU (arm64)
|
||||||
if: steps.t.outputs.skip == '0' && steps.t.outputs.arm == 'true'
|
if: steps.t.outputs.skip == '0' && steps.t.outputs.arm == 'true'
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
if: steps.t.outputs.skip == '0'
|
if: steps.t.outputs.skip == '0'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
with:
|
with:
|
||||||
registry: repo.anhonesthost.net
|
registry: repo.anhonesthost.net
|
||||||
username: ${{ secrets.CI_USER }}
|
username: ${{ secrets.CI_USER }}
|
||||||
@@ -155,7 +155,7 @@ jobs:
|
|||||||
- name: Build amd64 (push by digest)
|
- name: Build amd64 (push by digest)
|
||||||
if: steps.t.outputs.skip == '0'
|
if: steps.t.outputs.skip == '0'
|
||||||
id: amd64
|
id: amd64
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ${{ steps.t.outputs.dockerfile }}
|
file: ${{ steps.t.outputs.dockerfile }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -176,7 +176,7 @@ jobs:
|
|||||||
id: arm64
|
id: arm64
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
with:
|
with:
|
||||||
file: ${{ steps.t.outputs.dockerfile }}
|
file: ${{ steps.t.outputs.dockerfile }}
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
name: pin test
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
t:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
|
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
||||||
|
- run: |
|
||||||
|
mkdir -p /tmp/ctx
|
||||||
|
printf 'FROM scratch\nCOPY LICENSE /\n' > /tmp/ctx/Dockerfile
|
||||||
|
: > /tmp/ctx/LICENSE
|
||||||
|
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||||
|
with:
|
||||||
|
context: /tmp/ctx
|
||||||
|
push: false
|
||||||
|
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
registry: localhost.invalid
|
||||||
|
username: x
|
||||||
|
password: x
|
||||||
Reference in new issue
Block a user