This commit is contained in:
		
							parent
							
								
									3f0d6fd6c5
								
							
						
					
					
						commit
						bf89632e26
					
				
					 2 changed files with 31 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,30 @@
 | 
				
			||||||
 | 
					name: Build and Push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build-and-push:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    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.GITHUB_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
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,7 @@ RUN useradd cx -u 1000 -g cx -d /var/home/cx -s /usr/bin/fish
 | 
				
			||||||
ADD uni.sh /usr/bin/podman
 | 
					ADD uni.sh /usr/bin/podman
 | 
				
			||||||
ADD podman-compose.sh /usr/bin/podman-compose
 | 
					ADD podman-compose.sh /usr/bin/podman-compose
 | 
				
			||||||
ADD uni.sh /usr/bin/docker
 | 
					ADD uni.sh /usr/bin/docker
 | 
				
			||||||
 | 
					ADD uni.sh /usr/bin/xdg-open
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Incus 
 | 
					# Incus 
 | 
				
			||||||
ADD uni.sh /usr/bin/incus
 | 
					ADD uni.sh /usr/bin/incus
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue