Skip to content

Commit 7ae4c61

Browse files
SKB-TECHShadow243
authored andcommitted
[Fix]Neghtly-Image:correction of the Neghtly-Image file to push code every midnight
1 parent ed410db commit 7ae4c61

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed
Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,13 @@ on:
1414
- cron: "0 0 * * *"
1515
push:
1616
branches:
17-
- master
17+
- "*"
1818
workflow_dispatch:
1919

2020
jobs:
2121
build-and-push:
2222
runs-on: ubuntu-latest
2323

24-
env:
25-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
26-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
27-
28-
strategy:
29-
matrix:
30-
include:
31-
- php_version: ${{ inputs.php_version }}
32-
3324
steps:
3425
- name: Checkout repository
3526
uses: actions/checkout@v3
@@ -39,30 +30,6 @@ jobs:
3930
- name: Set up Docker Buildx
4031
uses: docker/setup-buildx-action@v2
4132

42-
# Debugging steps for DOCKER_USERNAME
43-
- name: Verify DOCKER_USERNAME is set
44-
run: |
45-
if [ -z "$DOCKER_USERNAME" ]; then
46-
echo "DOCKER_USERNAME is empty or not set!"
47-
exit 1
48-
else
49-
echo "DOCKER_USERNAME is set."
50-
fi
51-
52-
- name: Output partial DOCKER_USERNAME
53-
run: |
54-
echo "Partial DOCKER_USERNAME: ${DOCKER_USERNAME:0:3}***"
55-
56-
- name: Debug DOCKER_USERNAME length
57-
run: |
58-
echo "Length of DOCKER_USERNAME: ${#DOCKER_USERNAME}"
59-
60-
- name: Encode and Debug DOCKER_USERNAME
61-
run: |
62-
echo "Encoded DOCKER_USERNAME: $(echo -n "$DOCKER_USERNAME" | base64)"
63-
64-
- name: Log Environment Variables
65-
run: env
6633

6734
- name: Log in to Docker Hub
6835
uses: docker/login-action@v2
@@ -77,7 +44,7 @@ jobs:
7744
platforms: linux/amd64,linux/arm64
7845
file: ./docker/Dockerfile
7946
push: true
80-
tags: cypht/cypht-daily:${{ matrix.php_version }}
47+
tags: cypht/cypht-daily
8148
debug: true
8249

8350
- name: Log out from Docker Hub

.github/workflows/Test-Build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,4 @@ jobs:
142142
run: bash .github/tests/test.sh
143143

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

0 commit comments

Comments
 (0)