Add Gitea Action workflow
This commit is contained in:
		
							
								
								
									
										36
									
								
								.gitea/workflows/build.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								.gitea/workflows/build.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| name: Build | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     tags: | ||||
|       - 'v*' | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|  | ||||
|     - name: Checkout code | ||||
|       uses: actions/checkout@v3 | ||||
|  | ||||
|     - name: Extract version from tag reference | ||||
|       shell: bash | ||||
|       run: echo "AKKOMA_VERSION=${GITHUB_REF_NAME#refs/tags/v}" >> $GITHUB_ENV | ||||
|  | ||||
|     - name: Install Docker | ||||
|       run: curl -fsSL https://get.docker.com | sh | ||||
|  | ||||
|     - name: Configure Docker credentials | ||||
|       uses: docker/login-action@v2 | ||||
|       with: | ||||
|         registry: git.quent1.fr | ||||
|         username: ${{ gitea.actor }} | ||||
|         password: ${{ secrets.REGISTRY_PASSWORD }} | ||||
|  | ||||
|     - name: Build and push Docker image | ||||
|       uses: docker/build-push-action@v4 | ||||
|       with: | ||||
|         context: . | ||||
|         file: ./Dockerfile | ||||
|         push: true | ||||
|         tags: git.quent1.fr/quent1/akkoma:${{ env.AKKOMA_VERSION }} | ||||
		Reference in New Issue
	
	Block a user