Skip to content

Commit

Permalink
Change artifact directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
Enaraque committed Sep 2, 2024
1 parent 96da1d2 commit 4c8b21a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/packages_builder_ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,22 +184,16 @@ jobs:
if: always() && steps.alloc_vm_ami.outcome == 'success' && inputs.DESTROY == true
run: python3 wazuh-automation/deployability/modules/allocation/main.py --action delete --track-output /tmp/allocatorvm_ami/track.yml

- name: Generate directory for artifacts
- name: Compress Allocator directory
id: generate_artifacts
if: always() && steps.alloc_vm_ami.outcome == 'success' && inputs.DESTROY == false
run: |
mkdir -p $GITHUB_WORKSPACE/instance_info
cp -r /tmp/allocatorvm_ami $GITHUB_WORKSPACE/instance_info
zip -P "${{ secrets.ZIP_ARTIFACTS_PASSWORD }}" -r $GITHUB_WORKSPACE/instance_info.zip $GITHUB_WORKSPACE/instance_info
- name: List artifacts directory
if: always()
run: ls -la $GITHUB_WORKSPACE
run: zip -P "${{ secrets.ZIP_ARTIFACTS_PASSWORD }}" -r /tmp/allocatorvm_ami.zip /tmp/allocatorvm_ami
continue-on-error: true

- name: Upload artifacts
- name: Upload Allocator directory as artifact
if: always() && steps.generate_artifacts.outcome == 'success'
uses: actions/upload-artifact@v4
with:
name: instance_info
path: $GITHUB_WORKSPACE/instance_info.zip
path: /tmp/allocatorvm_ami.zip
compression-level: 0

0 comments on commit 4c8b21a

Please sign in to comment.