Skip to content

Commit

Permalink
feat: let each package specify the copies
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Jun 25, 2024
1 parent 233c07c commit 1818c2a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
docker buildx build --load --platform=linux/${{ matrix.arch }} -t ${{ matrix.service }} .
docker create --name tc ${{ matrix.service }}
mkdir -p ./dist/app
docker cp tc:/app ./dist
sh ./distribution/copy-assets.sh
docker rm tc
sed -i -E 's/version: .*$/version: '"${TAG}"'/' nfpm.yaml
sed -i -E 's/arch: .*$/arch: '"${{ matrix.pkg_arch }}"'/' nfpm.yaml
Expand Down Expand Up @@ -208,8 +208,7 @@ jobs:
docker buildx build --load --platform=linux/${{ matrix.arch }} -t ${{ matrix.service }} .
docker create --name tc ${{ matrix.service }}
mkdir -p ./dist/app
docker cp tc:/app ./dist/app
docker cp tc:/usr/local/lib/python3.11/site-packages ./dist/app/site-packages
sh ./distribution/copy-assets.sh
docker rm tc
sed -i -E 's/version: .*$/version: '"${TAG}"'/' nfpm.yaml
sed -i -E 's/arch: .*$/arch: '"${{ matrix.pkg_arch }}"'/' nfpm.yaml
Expand Down Expand Up @@ -269,7 +268,7 @@ jobs:
docker buildx build --load --platform=linux/${{ matrix.arch }} -t ${{ matrix.service }} .
docker create --name tc ${{ matrix.service }}
mkdir -p ./dist/app
docker cp tc:/app ./dist/app
sh ./distribution/copy-assets.sh
docker rm tc
sed -i -E 's/version: .*$/version: '"${TAG}"'/' nfpm.yaml
sed -i -E 's/arch: .*$/arch: '"${{ matrix.pkg_arch }}"'/' nfpm.yaml
Expand Down Expand Up @@ -332,7 +331,7 @@ jobs:
docker buildx build --load --platform=linux/${{ matrix.arch }} -t ${{ matrix.service }} .
docker create --name tc ${{ matrix.service }}
mkdir -p ./dist/app
docker cp tc:/app ./dist/app
sh ./distribution/copy-assets.sh
docker rm tc
sed -i -E 's/version: .*$/version: '"${TAG}"'/' nfpm.yaml
sed -i -E 's/arch: .*$/arch: '"${{ matrix.pkg_arch }}"'/' nfpm.yaml
Expand Down
1 change: 1 addition & 0 deletions coupon/distribution/copy-assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker cp tc:/app ./dist/app
1 change: 1 addition & 0 deletions frontend/distribution/copy-assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker cp tc:/app ./dist
2 changes: 2 additions & 0 deletions inventory/distribution/copy-assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker cp tc:/app ./dist/app
docker cp tc:/usr/local/lib/python3.11/site-packages ./dist/app/site-packages
1 change: 1 addition & 0 deletions pricing/distribution/copy-assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker cp tc:/app ./dist/app

0 comments on commit 1818c2a

Please sign in to comment.