mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-02-16 03:49:34 +00:00
Changed to docker/build-push-action@v4
This commit is contained in:
21
.github/workflows/docker-image.yml
vendored
21
.github/workflows/docker-image.yml
vendored
@@ -32,6 +32,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -39,18 +42,10 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Build and Push (${{ matrix.php }} / ${{ matrix.arch }})
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/build-push-action@v4
|
||||||
|
|
||||||
- name: Build and Publish (${{ matrix.php }} / ${{ matrix.arch }})
|
|
||||||
uses: elgohr/Publish-Docker-Github-Action@v5
|
|
||||||
with:
|
with:
|
||||||
name: ${{ env.IMAGE_NAME }}
|
file: Dockerfile-${{ matrix.php }}
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
tags: ${{ matrix.php }}
|
|
||||||
dockerfile: Dockerfile-${{ matrix.php }}
|
|
||||||
default_branch: main
|
|
||||||
platforms: ${{ matrix.arch }}
|
platforms: ${{ matrix.arch }}
|
||||||
cache: ${{ github.event_name != 'schedule' }}
|
push: true
|
||||||
|
tags: ${{ env.IMAGE_NAME }}:${{ matrix.php }}
|
||||||
|
|||||||
Reference in New Issue
Block a user