Skip to content

Commit

Permalink
REVERT: Leave image around after building
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bull committed May 25, 2023
1 parent 817a2ff commit 3955afa
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-image-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ jobs:
( success() || failure() || cancelled() ) &&
steps.build.outcome == 'success'
- name: Delete built image after testing
run: |
source venv/bin/activate
ansible-playbook \
-i image-build/hosts \
-e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
-e '{"cluster_image_delete": true}' \
image-build/image-delete-or-promote.yml
if: |
( success() || failure() || cancelled() ) &&
steps.build.outcome == 'success' &&
github.event_name == 'pull_request'
#- name: Delete built image after testing
# run: |
# source venv/bin/activate
# ansible-playbook \
# -i image-build/hosts \
# -e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
# -e '{"cluster_image_delete": true}' \
# image-build/image-delete-or-promote.yml
# if: |
# ( success() || failure() || cancelled() ) &&
# steps.build.outcome == 'success' &&
# github.event_name == 'pull_request'

- name: Promote built image from Private to Community after testing
run: |
Expand Down

0 comments on commit 3955afa

Please sign in to comment.