Some checks failed
		
		
	
	Build and Push / build-and-push (push) Has been cancelled
				
			
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Build and Push
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - main
 | 
						|
  schedule:
 | 
						|
    - cron: "0 5 * * *"
 | 
						|
 | 
						|
jobs:
 | 
						|
  build-and-push:
 | 
						|
    runs-on: ["amd64", "dev"]
 | 
						|
 | 
						|
    steps:
 | 
						|
      # Step 1: Checkout the repository
 | 
						|
      - name: Checkout code
 | 
						|
        uses: actions/checkout@v3
 | 
						|
 | 
						|
      # Step 2: Log in to Forgejo's registry
 | 
						|
      - name: Log in to local registry
 | 
						|
        env:
 | 
						|
            INSTANCE: gitea.ceperka.net
 | 
						|
            USERNAME: cx
 | 
						|
        run: echo "${{ secrets.CICD_TOKEN }}" | docker login $INSTANCE -u "cx" --password-stdin
 | 
						|
 | 
						|
      # Step 3: Build the project
 | 
						|
      - name: Build the project
 | 
						|
        run: task build
 | 
						|
 | 
						|
      # Step 4: Push the build
 | 
						|
      - name: Push the build
 | 
						|
        run: task push
 |