87 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: release-tag
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|       - 'main'
 | |
| jobs:
 | |
|   release-image:
 | |
|     runs-on: ubuntu-latest
 | |
|     env:
 | |
|       DOCKER_ORG: sendnrw
 | |
|       DOCKER_LATEST: latest
 | |
|       RUNNER_TOOL_CACHE: /toolcache
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v3
 | |
| 
 | |
|       - name: Set up QEMU
 | |
|         uses: docker/setup-qemu-action@v2
 | |
| 
 | |
|       - name: Set up Docker BuildX
 | |
|         uses: docker/setup-buildx-action@v2
 | |
|         with: # replace it with your local IP
 | |
|           config-inline: |
 | |
|             [registry."git.send.nrw"] 
 | |
|               http = true
 | |
|               insecure = true                        
 | |
| 
 | |
|       - name: Login to DockerHub
 | |
|         uses: docker/login-action@v2
 | |
|         with:
 | |
|           registry: git.send.nrw # replace it with your local IP
 | |
|           username: ${{ secrets.DOCKER_USERNAME }}
 | |
|           password: ${{ secrets.DOCKER_PASSWORD }}
 | |
|           
 | |
|       - name: Get Meta
 | |
|         id: meta
 | |
|         run: |
 | |
|           echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
 | |
|           echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT                          
 | |
| 
 | |
|       - name: Build and push PHP83
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           context: .
 | |
|           file: ./Dockerfile_PHP83
 | |
|           platforms: |
 | |
|             linux/amd64                                   
 | |
|           push: true
 | |
|           tags: | # replace it with your local IP and tags
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_php83:${{ steps.meta.outputs.REPO_VERSION }}
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_php83:${{ env.DOCKER_LATEST }}
 | |
| 
 | |
|       - name: Build and push PHP84
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           context: .
 | |
|           file: ./Dockerfile_PHP84
 | |
|           platforms: |
 | |
|             linux/amd64                                   
 | |
|           push: true
 | |
|           tags: | # replace it with your local IP and tags
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_php84:${{ steps.meta.outputs.REPO_VERSION }}
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_php84:${{ env.DOCKER_LATEST }}
 | |
| 
 | |
|       - name: Build and push Web
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           context: .
 | |
|           file: ./Dockerfile_WEB
 | |
|           platforms: |
 | |
|             linux/amd64                                   
 | |
|           push: true
 | |
|           tags: | # replace it with your local IP and tags
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_web:${{ steps.meta.outputs.REPO_VERSION }}
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_web:${{ env.DOCKER_LATEST }}
 | |
| 
 | |
|       - name: Build and push Redis
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           context: .
 | |
|           file: ./Dockerfile_Redis
 | |
|           platforms: |
 | |
|             linux/amd64                                   
 | |
|           push: true
 | |
|           tags: | # replace it with your local IP and tags
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_redis:${{ steps.meta.outputs.REPO_VERSION }}
 | |
|             git.send.nrw/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}_redis:${{ env.DOCKER_LATEST }} |