mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-02-10 07:47:17 +00:00
Split architectures, add login, add permissions
This commit is contained in:
17
.github/workflows/docker-image.yml
vendored
17
.github/workflows/docker-image.yml
vendored
@@ -19,27 +19,38 @@ jobs:
|
|||||||
BuildAndRelease:
|
BuildAndRelease:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php: [php74, php80, php81, php82]
|
php: [php74, php80, php81, php82]
|
||||||
|
arch: ['linux/amd64', 'linux/arm64']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Publish to Registry (${{ matrix.php }})
|
- name: Build and Publish (${{ matrix.php }} / ${{ matrix.arch }})
|
||||||
uses: elgohr/Publish-Docker-Github-Action@v5
|
uses: elgohr/Publish-Docker-Github-Action@v5
|
||||||
with:
|
with:
|
||||||
name: ${{ env.IMAGE_NAME }}
|
name: ${{ env.IMAGE_NAME }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: ghcr.io
|
registry: ${{ env.REGISTRY }}
|
||||||
tags: ${{ matrix.php }}
|
tags: ${{ matrix.php }}
|
||||||
dockerfile: Dockerfile-${{ matrix.php }}
|
dockerfile: Dockerfile-${{ matrix.php }}
|
||||||
default_branch: main
|
default_branch: main
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: ${{ matrix.arch }}
|
||||||
cache: ${{ github.event_name != 'schedule' }}
|
cache: ${{ github.event_name != 'schedule' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user