mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Use our upload/download artifact actions
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
9c713f4437
commit
54246055a8
6 changed files with 17 additions and 7 deletions
3
.github/workflows/build-deb-repo.yml
vendored
3
.github/workflows/build-deb-repo.yml
vendored
|
@ -132,9 +132,10 @@ jobs:
|
|||
--incoming=artifacts/pkgs/incoming --repo-path=artifacts/pkgs/repo
|
||||
|
||||
- name: Upload Repository As An Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
|
||||
path: artifacts/pkgs/repo/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
archive-name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-repo
|
||||
|
|
3
.github/workflows/build-macos-repo.yml
vendored
3
.github/workflows/build-macos-repo.yml
vendored
|
@ -95,9 +95,10 @@ jobs:
|
|||
--repo-path=artifacts/pkgs/repo
|
||||
|
||||
- name: Upload Repository As An Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
|
||||
path: artifacts/pkgs/repo/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
archive-name: macos-repo
|
||||
|
|
3
.github/workflows/build-onedir-repo.yml
vendored
3
.github/workflows/build-onedir-repo.yml
vendored
|
@ -137,9 +137,10 @@ jobs:
|
|||
--repo-path=artifacts/pkgs/repo
|
||||
|
||||
- name: Upload Repository As An Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
|
||||
path: artifacts/pkgs/repo/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
archive-name: onedir-repo
|
||||
|
|
3
.github/workflows/build-rpm-repo.yml
vendored
3
.github/workflows/build-rpm-repo.yml
vendored
|
@ -118,9 +118,10 @@ jobs:
|
|||
--incoming=artifacts/pkgs/incoming --repo-path=artifacts/pkgs/repo
|
||||
|
||||
- name: Upload Repository As An Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
|
||||
path: artifacts/pkgs/repo/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
archive-name: ${{ matrix.distro }}-${{ matrix.version }}-${{ matrix.arch }}-repo
|
||||
|
|
3
.github/workflows/build-windows-repo.yml
vendored
3
.github/workflows/build-windows-repo.yml
vendored
|
@ -101,9 +101,10 @@ jobs:
|
|||
--repo-path=artifacts/pkgs/repo
|
||||
|
||||
- name: Upload Repository As An Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: ./.github/actions/upload-artifact
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ inputs.environment }}-repo
|
||||
path: artifacts/pkgs/repo/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
archive-name: windows-repo
|
||||
|
|
9
.github/workflows/publish-repositories.yml
vendored
9
.github/workflows/publish-repositories.yml
vendored
|
@ -33,10 +33,15 @@ jobs:
|
|||
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 repo/
|
||||
tree -a artifacts/pkgs/repo/
|
||||
|
||||
- name: Upload Repository Contents(${{ inputs.environment }})
|
||||
run: |
|
||||
aws s3 cp --acl bucket-owner-full-control --recursive repo/ s3://salt-project-prod-salt-artifacts-${{ inputs.environment }}
|
||||
aws s3 cp --color on --acl bucket-owner-full-control --recursive artifacts/pkgs/repo/ s3://salt-project-prod-salt-artifacts-${{ inputs.environment }}
|
||||
|
|
Loading…
Add table
Reference in a new issue