Skip to content

Commit a42053c

Browse files
committed
ci: only on tagged
1 parent 8201b77 commit a42053c

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

.circleci/config.yml

+32-31
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ commands:
103103
target:
104104
description: "Rust target to put in artifact"
105105
type: string
106-
version:
107-
description: "Version to use for artifact"
108-
type: string
109106
suffix:
110107
description: "Suffix that is on the binary"
111108
type: string
@@ -118,11 +115,11 @@ commands:
118115
mv target/<< parameters.target >>/release/cargo-shuttle<< parameters.suffix >> artifacts/shuttle<< parameters.suffix >>
119116
mv LICENSE artifacts/
120117
mv README.md artifacts/
121-
7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-<< parameters.version >>-<< parameters.target >>.tar.gz
118+
7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-${CIRCLE_TAG}-<< parameters.target >>.tar.gz
122119
- persist_to_workspace:
123120
root: artifacts
124121
paths:
125-
- shuttle-<< parameters.version >>-<< parameters.target >>.tar.gz
122+
- shuttle-${CIRCLE_TAG}-<< parameters.target >>.tar.gz
126123

127124
jobs:
128125
workspace-fmt:
@@ -294,8 +291,6 @@ jobs:
294291
cargo build --release --package cargo-shuttle --features vendored-openssl --target << parameters.target >>
295292
- make-artifact:
296293
target: << parameters.target >>
297-
# version: {{ .Environment.CIRCLE_TAG }}
298-
version: version
299294
build-binaries-windows:
300295
executor:
301296
name: win/server-2022
@@ -320,8 +315,6 @@ jobs:
320315
..\.cargo\bin\cargo.exe build --release --package cargo-shuttle --features vendored-openssl --target x86_64-pc-windows-msvc
321316
- make-artifact:
322317
target: x86_64-pc-windows-msvc
323-
# version: {{ .Environment.CIRCLE_TAG }}
324-
version: version
325318
suffix: ".exe"
326319
build-binaries-mac:
327320
macos:
@@ -340,8 +333,6 @@ jobs:
340333
cargo build --release --package cargo-shuttle --features vendored-openssl --target x86_64-apple-darwin
341334
- make-artifact:
342335
target: x86_64-apple-darwin
343-
# version: {{ .Environment.CIRCLE_TAG }}
344-
version: version
345336
publish-github-release:
346337
docker:
347338
- image: cimg/go:1.19.3
@@ -404,33 +395,41 @@ workflows:
404395
image: ubuntu-2204:2022.04.1
405396
target: x86_64-unknown-linux-musl
406397
resource_class: medium
407-
# # requires:
408-
# # - build-and-push
409-
# filters:
410-
# tags:
411-
# only: /^v.*/
398+
# requires:
399+
# - build-and-push
400+
filters:
401+
tags:
402+
only: /^v.*/
403+
branches:
404+
ignore: /.*/
412405
- build-binaries-linux:
413406
name: build-binaries-aarch64
414407
image: ubuntu-2004:202101-01
415408
target: aarch64-unknown-linux-musl
416409
resource_class: arm.medium
417-
# # requires:
418-
# # - build-and-push
419-
# filters:
420-
# tags:
421-
# only: /^v.*/
422-
- build-binaries-windows
423-
# requires:
424-
# - build-and-push
425-
# filters:
426-
# tags:
427-
# only: /^v.*/
428-
- build-binaries-mac
429410
# requires:
430411
# - build-and-push
431-
# filters:
432-
# tags:
433-
# only: /^v.*/
412+
filters:
413+
tags:
414+
only: /^v.*/
415+
branches:
416+
ignore: /.*/
417+
- build-binaries-windows:
418+
# requires:
419+
# - build-and-push
420+
filters:
421+
tags:
422+
only: /^v.*/
423+
branches:
424+
ignore: /.*/
425+
- build-binaries-mac:
426+
# requires:
427+
# - build-and-push
428+
filters:
429+
tags:
430+
only: /^v.*/
431+
branches:
432+
ignore: /.*/
434433
- publish-github-release:
435434
requires:
436435
- build-binaries-x86_64
@@ -440,3 +439,5 @@ workflows:
440439
filters:
441440
tags:
442441
only: /^v.*/
442+
branches:
443+
ignore: /.*/

0 commit comments

Comments
 (0)