Adding dry run for Docker Compose.
This commit is contained in:
@@ -128,24 +128,33 @@ jobs:
|
|||||||
"${RINOA_GITEA_URL}/api/v1/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/reviews")
|
"${RINOA_GITEA_URL}/api/v1/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/reviews")
|
||||||
|
|
||||||
# Job 3: Merge PR if Quality Gate passes
|
# Job 3: Merge PR if Quality Gate passes
|
||||||
# merge-pr:
|
dry-run-merge-pr:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [check-and-create-pr, sonarqube-analysis]
|
needs: [check-and-create-pr, sonarqube-analysis]
|
||||||
# if: needs.sonarqube-analysis.outputs.quality_gate_status == 'PASSED'
|
if: needs.sonarqube-analysis.outputs.quality_gate_status == 'PASSED'
|
||||||
# steps:
|
steps:
|
||||||
# - name: Merge PR in Gitea
|
- name: Docker Compose Dry Run
|
||||||
# uses: prasiman/gocurl@v1
|
uses: s3i7h/spin-up-docker-compose-action@v1.2
|
||||||
# with:
|
with:
|
||||||
# url: "${{ secrets.GITEA_INSTANCE_URL }}/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls/${{ needs.check-and-create-pr.outputs.pr_index }}"
|
file: docker-compose.yml
|
||||||
# method: "POST"
|
pull: true
|
||||||
# headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}", "Content-Type": "application/json" }'
|
pull-opts: --dry-run
|
||||||
# params: >-
|
up: true
|
||||||
# {
|
up-opts: -d --dry-run
|
||||||
# "Do": "merge",
|
|
||||||
# "delete_branch_after_merge": true,
|
|
||||||
# "force_merge": true,
|
|
||||||
# "merge_when_checks_succeed": true
|
|
||||||
# }
|
|
||||||
|
|
||||||
# - name: Confirm Merge
|
# - name: Merge PR in Gitea
|
||||||
# run: echo "PR has been successfully merged into main."
|
# uses: prasiman/gocurl@v1
|
||||||
|
# with:
|
||||||
|
# url: "${{ secrets.GITEA_INSTANCE_URL }}/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls/${{ needs.check-and-create-pr.outputs.pr_index }}"
|
||||||
|
# method: "POST"
|
||||||
|
# headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}", "Content-Type": "application/json" }'
|
||||||
|
# params: >-
|
||||||
|
# {
|
||||||
|
# "Do": "merge",
|
||||||
|
# "delete_branch_after_merge": true,
|
||||||
|
# "force_merge": true,
|
||||||
|
# "merge_when_checks_succeed": true
|
||||||
|
# }
|
||||||
|
|
||||||
|
# - name: Confirm Merge
|
||||||
|
# run: echo "PR has been successfully merged into main."
|
||||||
|
|||||||
Reference in New Issue
Block a user