mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-29 13:15:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Alpha Release
 | |
| on:
 | |
|   workflow_dispatch:
 | |
|     inputs:
 | |
|       alpha:
 | |
|         description: "Alpha version (e.g. 1, 2, 3)"
 | |
|         required: true
 | |
| 
 | |
| jobs:
 | |
|   get-tag:
 | |
|     runs-on: ubuntu-latest
 | |
|     outputs:
 | |
|       tag: ${{ steps.tag.outputs.name }}
 | |
|     steps:
 | |
|       - name: Checkout code
 | |
|         uses: actions/checkout@v4
 | |
| 
 | |
|       - name: Get tag
 | |
|         id: tag
 | |
|         run: echo "name=$(cat internal/assets/version)-alpha.${{ github.event.inputs.alpha }}" >> $GITHUB_OUTPUT
 | |
| 
 | |
|   build-docker:
 | |
|     needs: get-tag
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v4
 | |
| 
 | |
|       - name: Set up QEMU
 | |
|         uses: docker/setup-qemu-action@v3
 | |
| 
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
| 
 | |
|       - name: Login to GitHub Container Registry
 | |
|         uses: docker/login-action@v3
 | |
|         with:
 | |
|           registry: ghcr.io
 | |
|           username: ${{ github.repository_owner }}
 | |
|           password: ${{ secrets.GITHUB_TOKEN }}
 | |
| 
 | |
|       - name: Build and push
 | |
|         uses: docker/build-push-action@v6
 | |
|         with:
 | |
|           context: .
 | |
|           push: true
 | |
|           platforms: linux/arm64, linux/amd64
 | |
|           tags: ghcr.io/${{ github.repository_owner }}/tinyauth:${{ needs.get-tag.outputs.tag }}
 | |
| 
 | |
|   alpha-release:
 | |
|     needs: [get-tag, build-docker]
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - name: Create alpha release
 | |
|         uses: softprops/action-gh-release@v2
 | |
|         with:
 | |
|           prerelease: true
 | |
|           tag_name: ${{ needs.get-tag.outputs.tag }}
 | 
