Skip to content

Commit

Permalink
[Fix]Neghtly-Image:correction of the Neghtly-Image file to push code …
Browse files Browse the repository at this point in the history
…every midnight
  • Loading branch information
SKB-TECH authored and Shadow243 committed Jan 27, 2025
1 parent ed410db commit 3563c05
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 85 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/Daily-Image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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

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
file: ./docker/Dockerfile
push: true
tags: cypht/cypht-daily
debug: true

- name: Log out from Docker Hub
run: docker logout
84 changes: 0 additions & 84 deletions .github/workflows/Nightly-Image.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/Test-Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,4 @@ jobs:
run: bash .github/tests/test.sh

Call-Image-Build:
needs: Test-selenium
uses: ./.github/workflows/Nightly-Image.yml

0 comments on commit 3563c05

Please sign in to comment.