salt/.github/workflows/publish-repositories.yml
Pedro Algarvio 54246055a8 Use our upload/download artifact actions
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-09 05:37:59 +00:00

47 lines
1.2 KiB
YAML

---
name: Publish Repositories
on:
workflow_call:
inputs:
environment:
type: string
description: On which GitHub Environment Context To Run
salt-version:
type: string
required: true
description: The Salt version
env:
COLUMNS: 160
jobs:
publish-repositories:
name: Publish Repositories
runs-on:
- self-hosted
- linux
- repo-${{ inputs.environment }}
environment: ${{ inputs.environment }}
steps:
- name: Download Repository Artifact
uses: actions/download-artifact@v3
with:
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
path: repo/
- name: Decompress Repository Artifacts
run: |
find repo/ -type f -name '*.tar.gz' -print -exec tar xvf {} \;
find repo/ -type f -name '*.tar.gz' -print -exec rm -f {} \;
- name: Show Repository
run: |
tree -a artifacts/pkgs/repo/
- name: Upload Repository Contents(${{ inputs.environment }})
run: |
aws s3 cp --color on --acl bucket-owner-full-control --recursive artifacts/pkgs/repo/ s3://salt-project-prod-salt-artifacts-${{ inputs.environment }}