Skip to content

Commit 1224e6c

Browse files
Merge pull request #1325 from SKB-TECH/Fix-Neghtly_Image
feat(other): daily-image
2 parents 36fcc93 + a3359fb commit 1224e6c

File tree

3 files changed

+38
-32
lines changed

3 files changed

+38
-32
lines changed

.github/workflows/Daily-Image.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Daily Image
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
jobs:
7+
if: github.repository_owner == 'cypht-org'
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v2
19+
20+
21+
- name: Log in to Docker Hub
22+
uses: docker/login-action@v2
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
27+
- name: Build and push Docker image
28+
uses: docker/build-push-action@v4
29+
with:
30+
context: .
31+
platforms: linux/amd64
32+
file: ./docker/Dockerfile
33+
push: true
34+
tags: cypht/cypht:daily
35+
debug: true
36+
37+
- name: Log out from Docker Hub
38+
run: docker logout

.github/workflows/Nightly-Image.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/Test-Build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,3 @@ jobs:
140140

141141
- name: "Script: test.sh"
142142
run: bash .github/tests/test.sh
143-
144-
Call-Image-Build:
145-
needs: Test-selenium
146-
uses: ./.github/workflows/Nightly-Image.yml

0 commit comments

Comments
 (0)