Skip to content

Commit

Permalink
Merge pull request #1325 from SKB-TECH/Fix-Neghtly_Image
Browse files Browse the repository at this point in the history
feat(other): daily-image
  • Loading branch information
JohnXLivingston authored Jan 27, 2025
2 parents 36fcc93 + a3359fb commit 1224e6c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 32 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/Daily-Image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Daily Image

on:
schedule:
- cron: "0 0 * * *"
jobs:
if: github.repository_owner == 'cypht-org'
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
28 changes: 0 additions & 28 deletions .github/workflows/Nightly-Image.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/Test-Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,3 @@ jobs:

- name: "Script: test.sh"
run: bash .github/tests/test.sh

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

0 comments on commit 1224e6c

Please sign in to comment.