This commit is contained in:
		
							
								
								
									
										35
									
								
								.gitea/workflows/action.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.gitea/workflows/action.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
name: 'Build docker container'
 | 
			
		||||
on: [push]
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    defaults:
 | 
			
		||||
      run:
 | 
			
		||||
          working-directory: ${{ GITHUB_WORKSPACE }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
      - name: Install Docker
 | 
			
		||||
        run: |
 | 
			
		||||
            echo "Checking docker installation"
 | 
			
		||||
            if command -v docker &> /dev/null; then
 | 
			
		||||
                echo "Docker installation found"
 | 
			
		||||
            else
 | 
			
		||||
                echo "Docker installation not found. Docker will be installed"
 | 
			
		||||
                curl -fsSL https://get.docker.com | sh
 | 
			
		||||
            fi
 | 
			
		||||
      - name: Set up Docker Buildx
 | 
			
		||||
        uses: https://github.com/docker/setup-buildx-action@v3
 | 
			
		||||
      - name: Docker login
 | 
			
		||||
        uses: https://github.com/docker/login-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          registry: git.claeyscloud.com
 | 
			
		||||
          username: nologin
 | 
			
		||||
          password: ${{ secrets.PACKAGE_TOKEN }}
 | 
			
		||||
      - name: Build and push
 | 
			
		||||
        uses: https://github.com/docker/build-push-action@v5
 | 
			
		||||
        with:
 | 
			
		||||
          context: .
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: |
 | 
			
		||||
            git.claeyscloud.com/david/telebilbao-epg
 | 
			
		||||
		Reference in New Issue
	
	Block a user