mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-11-03 21:07:55 +00:00 
			
		
		
		
	ci: Release to Garage, stop mirroring to Sourcehut
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/publish-mirror.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/publish-mirror.yml
									
									
									
									
										vendored
									
									
								
							@@ -51,14 +51,3 @@ jobs:
 | 
				
			|||||||
        with:
 | 
					        with:
 | 
				
			||||||
          source-repo: "git@github.com:privacyguides/privacyguides.org.git"
 | 
					          source-repo: "git@github.com:privacyguides/privacyguides.org.git"
 | 
				
			||||||
          destination-repo: "git@codeberg.org:privacyguides/privacyguides.org.git"
 | 
					          destination-repo: "git@codeberg.org:privacyguides/privacyguides.org.git"
 | 
				
			||||||
 | 
					 | 
				
			||||||
  sourcehut:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - name: Mirror to SourceHut
 | 
					 | 
				
			||||||
        uses: wearerequired/git-mirror-action@v1
 | 
					 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
          SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_SSH_KEY }}
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          source-repo: "git@github.com:privacyguides/privacyguides.org.git"
 | 
					 | 
				
			||||||
          destination-repo: "git@git.sr.ht:~jonaharagon/privacyguides.org"
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								.github/workflows/publish-pr.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/publish-pr.yml
									
									
									
									
										vendored
									
									
								
							@@ -87,7 +87,7 @@ jobs:
 | 
				
			|||||||
          echo "pr_number=$(cat metadata/NR)" >> "$GITHUB_OUTPUT"
 | 
					          echo "pr_number=$(cat metadata/NR)" >> "$GITHUB_OUTPUT"
 | 
				
			||||||
          echo "sha=$(cat metadata/SHA)" >> "$GITHUB_OUTPUT"
 | 
					          echo "sha=$(cat metadata/SHA)" >> "$GITHUB_OUTPUT"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  deploy:
 | 
					  deploy_netlify:
 | 
				
			||||||
    needs: metadata
 | 
					    needs: metadata
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      contents: read
 | 
					      contents: read
 | 
				
			||||||
@@ -99,13 +99,27 @@ jobs:
 | 
				
			|||||||
    secrets:
 | 
					    secrets:
 | 
				
			||||||
      NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
 | 
					      NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  deploy_garage:
 | 
				
			||||||
 | 
					    needs: metadata
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      contents: read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    uses: privacyguides/webserver/.github/workflows/deploy-garage-preview.yml@main
 | 
				
			||||||
 | 
					    with:
 | 
				
			||||||
 | 
					      alias: ${{ needs.metadata.outputs.pr_number }}
 | 
				
			||||||
 | 
					      bucket: ${{ vars.PREVIEW_GARAGE_BUCKET }}
 | 
				
			||||||
 | 
					      hostname: ${{ vars.PREVIEW_GARAGE_HOSTNAME }}
 | 
				
			||||||
 | 
					    secrets:
 | 
				
			||||||
 | 
					      PREVIEW_GARAGE_KEY_ID: ${{ secrets.PREVIEW_GARAGE_KEY_ID }}
 | 
				
			||||||
 | 
					      PREVIEW_GARAGE_SECRET_KEY: ${{ secrets.PREVIEW_GARAGE_SECRET_KEY }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  comment:
 | 
					  comment:
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      pull-requests: write
 | 
					      pull-requests: write
 | 
				
			||||||
    needs: [deploy, metadata]
 | 
					    needs: [deploy_netlify, metadata]
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      address: ${{ needs.deploy.outputs.address }}
 | 
					      address: ${{ needs.deploy_netlify.outputs.address }}
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: thollander/actions-comment-pull-request@v2.5.0
 | 
					      - uses: thollander/actions-comment-pull-request@v2.5.0
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/publish-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/publish-release.yml
									
									
									
									
										vendored
									
									
								
							@@ -90,6 +90,8 @@ jobs:
 | 
				
			|||||||
      NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
 | 
					      NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
 | 
				
			||||||
      PROD_MINIO_KEY_ID: ${{ secrets.PROD_MINIO_KEY_ID }}
 | 
					      PROD_MINIO_KEY_ID: ${{ secrets.PROD_MINIO_KEY_ID }}
 | 
				
			||||||
      PROD_MINIO_SECRET_KEY: ${{ secrets.PROD_MINIO_SECRET_KEY }}
 | 
					      PROD_MINIO_SECRET_KEY: ${{ secrets.PROD_MINIO_SECRET_KEY }}
 | 
				
			||||||
 | 
					      PROD_GARAGE_KEY_ID: ${{ secrets.PROD_GARAGE_KEY_ID }}
 | 
				
			||||||
 | 
					      PROD_GARAGE_SECRET_KEY: ${{ secrets.PROD_GARAGE_SECRET_KEY }}
 | 
				
			||||||
      CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
 | 
					      CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
 | 
				
			||||||
      CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
 | 
					      CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
 | 
				
			||||||
      CLUSTER_USERNAME: ${{ secrets.CLUSTER_USERNAME }}
 | 
					      CLUSTER_USERNAME: ${{ secrets.CLUSTER_USERNAME }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user