docker build and .gitignore added
This commit is contained in:
		
							
								
								
									
										30
									
								
								.gitea/workflows/dev.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.gitea/workflows/dev.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					name: docker-build mr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches-ignore:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  dockerfile_lint:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - uses: hadolint/hadolint-action@v3.1.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          dockerfile: Dockerfile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    # needs: dockerfile_lint
 | 
				
			||||||
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - name: Kaniko build
 | 
				
			||||||
 | 
					        uses: aevea/action-kaniko@master
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          image: rogersik/ubuntu-xrdp
 | 
				
			||||||
 | 
					          registry: gitea.sikorski.cloud
 | 
				
			||||||
 | 
					          tag: "latest-dev"
 | 
				
			||||||
 | 
					          cache: true
 | 
				
			||||||
 | 
					          username: rogersik
 | 
				
			||||||
 | 
					          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
				
			||||||
							
								
								
									
										32
									
								
								.gitea/workflows/main.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.gitea/workflows/main.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					name: docker-build main
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  dockerfile_lint:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - uses: hadolint/hadolint-action@v3.1.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          dockerfile: Dockerfile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    # needs: dockerfile_lint
 | 
				
			||||||
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - name: Kaniko build
 | 
				
			||||||
 | 
					        # https://github.com/aevea/action-kaniko/releases
 | 
				
			||||||
 | 
					        uses: aevea/action-kaniko@v0.12.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          image: rogersik/ubuntu-xrdp
 | 
				
			||||||
 | 
					          registry: gitea.sikorski.cloud
 | 
				
			||||||
 | 
					          tag: 'latest'
 | 
				
			||||||
 | 
					          # tag_with_latest: true # https://github.com/aevea/action-kaniko/issues/66
 | 
				
			||||||
 | 
					          cache: true
 | 
				
			||||||
 | 
					          username: rogersik
 | 
				
			||||||
 | 
					          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
				
			||||||
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					# k8s
 | 
				
			||||||
 | 
					secret.yml
 | 
				
			||||||
 | 
					secret.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# dev
 | 
				
			||||||
 | 
					.local
 | 
				
			||||||
							
								
								
									
										2
									
								
								.hadolint.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.hadolint.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					ignored:
 | 
				
			||||||
 | 
					  - DL3008 # no need to pin versions
 | 
				
			||||||
							
								
								
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					FROM ubuntu:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# https://github.com/hadolint/hadolint/wiki/DL4006
 | 
				
			||||||
 | 
					SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 | 
				
			||||||
		Reference in New Issue
	
	Block a user