1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Matrix the upload

I know kung fu
This commit is contained in:
Chris Hunt
2022-08-12 14:58:07 -04:00
parent edc46b1d79
commit 5d6c3284db

View File

@ -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: