Skip to content

Commit

Permalink
limit which packages are published
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall007 committed Jul 16, 2024
1 parent 3a60c32 commit d299608
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tasks/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ tasks:
description: Publish package for the supplied architecture
inputs:
path:
description: Path to the zarf package being published
description: Path to the zarf package(s) being published
default: .
filter:
description: Filter the package(s) to be published by name
default: "*"
target_repo:
description: The repository to publish into
default: ghcr.io/defenseunicorns/packages/uds
actions:
- description: Publish package for the supplied architecture
cmd: |
for pkg in ${{ .inputs.path }}/zarf-package-*.tar.zst; do
for pkg in ${{ .inputs.path }}/zarf-package-${{ .inputs.filter }}.tar.zst; do
./uds zarf package publish "$pkg" oci://${{ .inputs.target_repo }}
done
Expand All @@ -47,8 +50,10 @@ tasks:
- name: publish-package
description: Publish the packages
actions:
- description: Publish the full packages
- description: Publish the full mattermost packages
task: publish
with:
filter: mattermost-*
- description: Publish the skeleton plugins package
cmd: |
./uds zarf package publish ./plugins oci://ghcr.io/defenseunicorns/packages/uds

0 comments on commit d299608

Please sign in to comment.