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 7ae4c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,13 @@ on:
- cron: "0 0 * * *"
push:
branches:
- master
- "*"
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

strategy:
matrix:
include:
- php_version: ${{ inputs.php_version }}

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -39,30 +30,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Debugging steps for DOCKER_USERNAME
- name: Verify DOCKER_USERNAME is set
run: |
if [ -z "$DOCKER_USERNAME" ]; then
echo "DOCKER_USERNAME is empty or not set!"
exit 1
else
echo "DOCKER_USERNAME is set."
fi
- name: Output partial DOCKER_USERNAME
run: |
echo "Partial DOCKER_USERNAME: ${DOCKER_USERNAME:0:3}***"
- name: Debug DOCKER_USERNAME length
run: |
echo "Length of DOCKER_USERNAME: ${#DOCKER_USERNAME}"
- name: Encode and Debug DOCKER_USERNAME
run: |
echo "Encoded DOCKER_USERNAME: $(echo -n "$DOCKER_USERNAME" | base64)"
- name: Log Environment Variables
run: env

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -77,7 +44,7 @@ jobs:
platforms: linux/amd64,linux/arm64
file: ./docker/Dockerfile
push: true
tags: cypht/cypht-daily:${{ matrix.php_version }}
tags: cypht/cypht-daily
debug: true

- name: Log out from Docker Hub
Expand Down
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 7ae4c61

Please sign in to comment.