Skip to content

Commit 02c8b8a

Browse files
committed
More changes
1 parent 535bc4d commit 02c8b8a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ client: $(addsuffix -client, $(CLIENT_BUILD_ARCHS))
9595
# Debian Packages
9696

9797
%-deb: %-dockerhub-pull
98-
mkdir -p release
98+
rm -rf tmp/proxmox-backup-server-$(TAG)-$*
9999
-docker rm -f proxmox-backup-$(TAG)-$*
100100
docker create --name=proxmox-backup-$(TAG)-$* $(REGISTRY):$(TAG)-$*
101-
docker cp proxmox-backup-$(TAG)-$*:/src/release/. release/$*
101+
docker cp proxmox-backup-$(TAG)-$*:/release/. tmp/proxmox-backup-server-$(TAG)-$*
102102
-docker rm -f proxmox-backup-$(TAG)-$*
103-
tar zcvf release/proxmox-backup-server-project-${version}.tgz \
104-
--transform="s|^release/|proxmox-backup-server-$(VERSION)/|" \
105-
release/*/*.deb release/install
103+
tar zcvf release/proxmox-backup-server-$(TAG)-$*.tgz --transform="s|^tmp/||" tmp/proxmox-backup-server-$(TAG)-$*/
104+
release/proxmox-backup-client-$(VERSION)-$*.tgz
106105

107106
deb: $(addsuffix -deb, $(BUILD_ARCHS))
108107

dockerfiles/Dockerfile.client

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ RUN ./scripts/repo.bash --keep proxmox-backup "make . ignore proxmox-backup-clie
3838

3939
# Bundle client
4040
ARG VERSION
41-
ADD /dockerfiles/ /dockerfiles/
42-
RUN /dockerfiles/bundle-client.bash
41+
ADD /dockerfiles/scripts/ /dockerfiles/scripts/
42+
RUN /dockerfiles/scripts/bundle-client.bash

dockerfiles/scripts/bundle-client.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BINARIES=( /src/build/proxmox-backup/target/static-build/*/release/{pxar,proxmox
99
mkdir -p "$DESTDIR/$NAME"
1010

1111
cp -v ${BINARIES[@]} "$DESTDIR/$NAME"
12-
cp -v /dockerfiles/client/* "$DESTDIR/$NAME"
12+
cp -v /dockerfiles/scripts/client/* "$DESTDIR/$NAME"
1313

1414
cd $DESTDIR
1515
tar zcfv "$NAME.tgz" $NAME

0 commit comments

Comments
 (0)