Skip to content

Daily Sync

Daily Sync #552

Workflow file for this run

name: Daily Sync
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
sync-job:
if: github.repository_owner == 'redhat-best-practices-for-k8s'
runs-on: ubuntu-24.04
# Global environment variables for the job
env:
NUM_DAYS: "1"
DB_CHOICE: "aws"
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_URL: ${{ secrets.DB_URL }}
DB_PORT: ${{ secrets.DB_PORT }}
CLIENTID: ${{ secrets.CLIENTID }}
APISECRET: ${{ secrets.APISECRET }}
BEARERTOKEN: ${{ secrets.BEARERTOKEN }}
NAMESPACE: redhat-best-practices-for-k8s
REPOSITORY: certsuite
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: List files in the repository
run: ls -R
- name: Build certsuite-overview project
run: |
cd cmd
go build -o ../certsuite-overview
- name: Run the certsuite-overview project
run: ./certsuite-overview fetch