Skip to content

Commit fd929c6

Browse files
authored
Merge pull request #2 from VerdigrisTech/circleCIBuildingError
fix: concurrent jobs writing the same files into the same workspace
2 parents 6dfd2f2 + a79ca42 commit fd929c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
mkdir -p dist/localproxy-linux-${ARCH}
8383
8484
tar -xvf localproxy-linux-<< parameters.architecture >><< parameters.variant >>.tar -C dist/localproxy-linux-${ARCH}
85-
nfpm pkg --packager deb --target debian/
85+
nfpm pkg --packager deb --target debian/<< parameters.architecture >><< parameters.variant >>
8686
- store_artifacts:
8787
path: localproxy-linux-<< parameters.architecture >><< parameters.variant >>.tar.xz
8888
- store_artifacts:
@@ -91,7 +91,7 @@ jobs:
9191
root: .
9292
paths:
9393
- localproxy-linux-<< parameters.architecture >><< parameters.variant >>.tar.xz
94-
- debian/
94+
- debian/<< parameters.architecture >><< parameters.variant >>
9595

9696
build-mac:
9797
macos:
@@ -160,14 +160,14 @@ jobs:
160160
- run:
161161
name: Publish to Package Cloud
162162
command: |
163-
echo $distro_versions | tr ' ' '\n' | parallel 'echo "Pushing packages for {}..." && find /tmp/workspace/debian -type f -name "*.deb" | xargs -I @ package_cloud push verdigris/packages/{} @'
163+
echo $distro_versions | tr ' ' '\n' | parallel 'echo "Pushing packages for {}..." && find /tmp/workspace/debian* -type f -name "*.deb" | xargs -I @ package_cloud push verdigris/packages/{} @'
164164
- unless:
165165
condition: << pipeline.git.tag >>
166166
steps:
167167
- run:
168168
name: Publish to Package Cloud (Dry Run)
169169
command: |
170-
echo $distro_versions | tr ' ' '\n' | parallel 'echo "Pushing packages for {}..." && find /tmp/workspace/debian -type f -name "*.deb" | xargs -I @ echo "package_cloud push verdigris/packages/{} @"'
170+
echo $distro_versions | tr ' ' '\n' | parallel 'echo "Pushing packages for {}..." && find /tmp/workspace/debian* -type f -name "*.deb" | xargs -I @ echo "package_cloud push verdigris/packages/{} @"'
171171
172172
workflows:
173173
release:

0 commit comments

Comments
 (0)