1
0
mirror of https://github.com/php/pie.git synced 2026-03-23 23:12:17 +01:00

Use bin instead of latest-bin

This commit is contained in:
Greg Korba
2024-12-03 16:21:46 +01:00
parent 99e25f852c
commit 8585fd2239
2 changed files with 6 additions and 7 deletions

View File

@@ -86,13 +86,12 @@ jobs:
with:
flavor: |
latest=false
suffix=-bin
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=bin
type=semver,pattern={{version}}-bin
type=semver,pattern={{major}}.{{minor}}-bin
type=semver,pattern={{major}}-bin
- name: Build and push Docker image
id: build-and-push

View File

@@ -32,10 +32,10 @@ sudo curl -L --output /usr/local/bin/pie https://github.com/php/pie/releases/lat
PIE is published as binary-only Docker image, so you can install it easily during your Docker build:
```Dockerfile
COPY --from=ghcr.io/php/pie:latest-bin /pie /usr/bin/pie
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
```
Instead of `latest` you can also use explicit versions like `x.y.z-bin`, `x.y-bin` or `x-bin`, depending on stability level you want to achieve.
Instead of `bin` tag (which represents latest binary-only image) you can also use explicit versions like `x.y.z-bin`, `x.y-bin` or `x-bin`, depending on stability level you want to achieve.
> [!IMPORTANT]
> Binary-only images don't include PHP runtime so you can't use them for _running_ PIE. This is just an alternative way of distributing PHAR file, you still need to satisfy PIE's runtime requirements on your own.