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

Move CloudSmith upload to it's own job

This commit is contained in:
Chris Hunt
2022-08-12 14:11:27 -04:00
parent 77a5c6a82c
commit ea3238a3d2

View File

@@ -144,23 +144,38 @@ jobs:
- store_artifacts: - store_artifacts:
path: dist path: dist
- cloudsmith/ensure-api-key - persist_to_workspace:
- cloudsmith/install-cli root: dist
- cloudsmith/publish: paths:
cloudsmith-repository: stackoverflow/dnscontrol - dist/*.rpm
package-format: rpm - dist/*.deb
package-path: dist/*.rpm
- cloudsmith/publish: upload:
cloudsmith-repository: stackoverflow/dnscontrol docker:
package-format: deb - image: cimg/python:3.10
package-path: dist/*.deb
steps:
- attach_workspace:
at: .
- cloudsmith/ensure-api-key
- cloudsmith/install-cli
- cloudsmith/publish:
cloudsmith-repository: stackoverflow/dnscontrol
package-format: rpm
package-path: '*.rpm'
- cloudsmith/publish:
cloudsmith-repository: stackoverflow/dnscontrol
package-format: deb
package-path: '*.deb'
workflows: workflows:
version: 2 version: 2
build: build:
jobs: jobs:
- build: - build:
filters: # required since `release` has tag filters AND requires `build` through 'integration-tests' filters: # required since `release` has tag filters AND requires `build`
tags: tags:
only: /.*/ only: /.*/
@@ -192,7 +207,17 @@ workflows:
- release: - release:
requires: [build] requires: [build]
context: [DNSControl, StackExchange] context: [DNSControl]
# Only run this job on git tag pushes
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- upload:
requires: [release]
context: [StackExchange]
# Only run this job on git tag pushes # Only run this job on git tag pushes
filters: filters:
branches: branches: