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
- persist_to_workspace:
root: dist
paths:
- dist/*.rpm
- dist/*.deb
upload:
docker:
- image: cimg/python:3.10
steps:
- attach_workspace:
at: .
- cloudsmith/ensure-api-key - cloudsmith/ensure-api-key
- cloudsmith/install-cli - cloudsmith/install-cli
- cloudsmith/publish: - cloudsmith/publish:
cloudsmith-repository: stackoverflow/dnscontrol cloudsmith-repository: stackoverflow/dnscontrol
package-format: rpm package-format: rpm
package-path: dist/*.rpm package-path: '*.rpm'
- cloudsmith/publish: - cloudsmith/publish:
cloudsmith-repository: stackoverflow/dnscontrol cloudsmith-repository: stackoverflow/dnscontrol
package-format: deb package-format: deb
package-path: dist/*.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: