From 5d6c3284dbb8234bab3f3a905da375db321de65d Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Fri, 12 Aug 2022 14:58:07 -0400 Subject: [PATCH] Matrix the upload I know kung fu --- .circleci/config.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08f927fa4..f80f6f7f5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -154,6 +154,14 @@ jobs: docker: - image: cimg/python:3.10 + parameters: + arch: + type: enum + enum: ["386", "amd64", "arm64"] + format: + type: enum + enum: ["deb", "rpm"] + steps: - attach_workspace: @@ -163,13 +171,8 @@ jobs: - cloudsmith/install-cli - cloudsmith/publish: cloudsmith-repository: stackoverflow/dnscontrol - package-format: rpm - package-path: '*.rpm' - package-distribution: 'any-distro/any-version' - - cloudsmith/publish: - cloudsmith-repository: stackoverflow/dnscontrol - package-format: deb - package-path: '*.deb' + package-format: << parameters.format >> + package-path: dnscontrol_<< parameters.arch >>.<< parameters.format >> package-distribution: 'any-distro/any-version' workflows: @@ -218,8 +221,13 @@ workflows: only: /v[0-9]+(\.[0-9]+)*(-.*)*/ - upload: + name: upload dnscontrol_<< matrix.arch >>.<< matrix.format >> requires: [release] context: [StackExchange] + matrix: + parameters: + arch: ["386", "amd64", "arm64"] + format: ["deb", "rpm"] # Only run this job on git tag pushes filters: branches: