Workflow fix

This commit is contained in:
2023-04-24 10:02:53 +03:00
parent 9797d08749
commit 1b639811bd

View File

@@ -1,10 +1,12 @@
---
# yamllint disable truthy
name: GitHub Docker Registry Build name: GitHub Docker Registry Build
on: on:
schedule: schedule:
- cron: '41 1 * * *' - cron: "41 1 * * *"
push: push:
branches: [ "main" ] branches: ["main"]
workflow_dispatch: workflow_dispatch:
env: env:
@@ -14,7 +16,6 @@ env:
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -31,11 +32,11 @@ jobs:
- name: Publish to Registry (${{ matrix.php }}) - name: Publish to Registry (${{ matrix.php }})
uses: elgohr/Publish-Docker-Github-Action@v5 uses: elgohr/Publish-Docker-Github-Action@v5
with: with:
name: ${{ env.IMAGE_NAME }}/php-imagick name: ${{ env.IMAGE_NAME }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io registry: ghcr.io
tags: ${{ matrix.phpDir }} tags: ${{ matrix.php }}
dockerfile: Dockerfile-${{ matrix.php }} dockerfile: Dockerfile-${{ matrix.php }}
default_branch: main default_branch: main
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64