Skip to content

Commit 9471567

Browse files
authored
Merge pull request #55 from tripleo-ci/avoid_duplicate_stack
Heat Stack name Optimization
2 parents b78a02c + 0d1e1eb commit 9471567

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/reusable-workflow-e2e.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ jobs:
333333
OS_PROJECT_DOMAIN_ID: ${{ secrets.OS_PROJECT_DOMAIN_ID }}
334334
OS_USER_DOMAIN_NAME: ${{ secrets.OS_USER_DOMAIN_NAME }}
335335
run: |
336-
openstack stack create -t ${{ github.workspace }}/.github/sno_heat_stack.yaml gha_sno_stack_${GITHUB_SHA:0:7} --wait
337-
floating_ip=$(openstack stack output show gha_sno_stack_${GITHUB_SHA:0:7} heat_server_public_ip -c output_value -f value)
336+
openstack stack create -t ${{ github.workspace }}/.github/sno_heat_stack.yaml gha_sno_stack_${{ github.event.repository.name }}_${{ github.event.pull_request.number }} --wait
337+
floating_ip=$(openstack stack output show gha_sno_stack_${{ github.event.repository.name }}_${{ github.event.pull_request.number }} heat_server_public_ip -c output_value -f value)
338338
echo "$floating_ip api.${{ secrets.SNO_DOMAIN_NAME }}" | sudo tee -a /etc/hosts > /dev/null
339339
echo "$floating_ip console-openshift-console.apps.${{ secrets.SNO_DOMAIN_NAME }}" | sudo tee -a /etc/hosts > /dev/null
340340
echo "$floating_ip integrated-oauth-server-openshift-authentication.apps.${{ secrets.SNO_DOMAIN_NAME }}" | sudo tee -a /etc/hosts > /dev/null
@@ -394,4 +394,4 @@ jobs:
394394
OS_PROJECT_DOMAIN_ID: ${{ secrets.OS_PROJECT_DOMAIN_ID }}
395395
OS_USER_DOMAIN_NAME: ${{ secrets.OS_USER_DOMAIN_NAME }}
396396
run: |
397-
openstack stack delete gha_sno_stack_${GITHUB_SHA:0:7}
397+
openstack stack delete gha_sno_stack_${{ github.event.repository.name }}_${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)