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:
@ -154,6 +154,14 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
- image: cimg/python:3.10
|
- image: cimg/python:3.10
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
arch:
|
||||||
|
type: enum
|
||||||
|
enum: ["386", "amd64", "arm64"]
|
||||||
|
format:
|
||||||
|
type: enum
|
||||||
|
enum: ["deb", "rpm"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -163,13 +171,8 @@ jobs:
|
|||||||
- cloudsmith/install-cli
|
- cloudsmith/install-cli
|
||||||
- cloudsmith/publish:
|
- cloudsmith/publish:
|
||||||
cloudsmith-repository: stackoverflow/dnscontrol
|
cloudsmith-repository: stackoverflow/dnscontrol
|
||||||
package-format: rpm
|
package-format: << parameters.format >>
|
||||||
package-path: '*.rpm'
|
package-path: dnscontrol_<< parameters.arch >>.<< parameters.format >>
|
||||||
package-distribution: 'any-distro/any-version'
|
|
||||||
- cloudsmith/publish:
|
|
||||||
cloudsmith-repository: stackoverflow/dnscontrol
|
|
||||||
package-format: deb
|
|
||||||
package-path: '*.deb'
|
|
||||||
package-distribution: 'any-distro/any-version'
|
package-distribution: 'any-distro/any-version'
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
@ -218,8 +221,13 @@ workflows:
|
|||||||
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
|
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
|
||||||
|
|
||||||
- upload:
|
- upload:
|
||||||
|
name: upload dnscontrol_<< matrix.arch >>.<< matrix.format >>
|
||||||
requires: [release]
|
requires: [release]
|
||||||
context: [StackExchange]
|
context: [StackExchange]
|
||||||
|
matrix:
|
||||||
|
parameters:
|
||||||
|
arch: ["386", "amd64", "arm64"]
|
||||||
|
format: ["deb", "rpm"]
|
||||||
# Only run this job on git tag pushes
|
# Only run this job on git tag pushes
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
Reference in New Issue
Block a user