Skip to content

[Fix]Neghtly-Image:correction of the Neghtly-Image file to push code … #2

[Fix]Neghtly-Image:correction of the Neghtly-Image file to push code …

[Fix]Neghtly-Image:correction of the Neghtly-Image file to push code … #2

Workflow file for this run

name: Build Daily Image
on:
pull_request_target:
workflow_call:
inputs:
php_version:
description: "PHP version to use for the build"
required: false
default: "latest"
type: string
schedule:
- cron: "0 0 * * *"
push:
branches:
- "*"
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php_version: ${{ inputs.php_version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./docker/Dockerfile
push: true
tags: cypht/cypht-daily:${{ matrix.php_version }}
debug: true
- name: Log out from Docker Hub
run: docker logout