Commit 8acf5f8c authored by Lorenzo Setale's avatar Lorenzo Setale

changes target to dist directory

Signed-off-by: Lorenzo Setale's avatarLorenzo Setale <[email protected]>
parent 5a40df69
build
dist
*ignore*
\ No newline at end of file
*ignore*
.DS_Store
\ No newline at end of file
......@@ -4,27 +4,11 @@ stages:
- build
- release
# no longer building Orion due to issue in old npm packages and orion being
# deprecated. We are including the files into `static`
# build:orion:
# stage: build
# script:
# - make orion_release_beta
# - make orion_release_stable
# - make collect_deb_packages
# allow_failure: true
# artifacts:
# paths:
# - dist/orion
# expire_in: 1 day
# only:
# - master
build:ipfs:amd64:
stage: build
script:
- apt-get update
- apt-get install --yes make dh-make apt-utils dpkg-dev dpkg-sig ubuntu-dev-tools
- apt-get install --yes make dh-make apt-utils dpkg-dev dpkg-sig ubuntu-dev-tools binutils-arm-linux-gnueabihf
- make clean_build deb_ipfs_amd64
- make clean_build deb_ipfs_amd64 -e IPFS_VERSION=v0.5.1
- make clean_build deb_ipfs-service deb_ipfs-gateway
......@@ -33,39 +17,17 @@ build:ipfs:amd64:
paths:
- dist
expire_in: 1 day
only:
- master
# build:ipfs:arm:
# stage: build
# script:
# - apt-get update
# - apt-get install --yes make dh-make apt-utils dpkg-dev dpkg-sig ubuntu-dev-tools
# - apt-get install --yes binutils-arm-linux-gnueabihf
# - dpkg --add-architecture armhf
# - make clean_build deb_ipfs_arm
# - make clean_build deb_ipfs_arm -e IPFS_VERSION=v0.4.20
# - make clean_build deb_ipfs_arm -e IPFS_VERSION=v0.4.19
# - make clean_build deb_ipfs-service deb_ipfs-gateway
# artifacts:
# paths:
# - dist
# expire_in: 1 day
# only:
# - master
pages:
stage: release
script:
- apt-get update
- apt-get install --yes build-essential make dh-make apt-utils dpkg-dev dpkg-sig unzip ubuntu-dev-tools
- apt-get install --yes build-essential make dh-make apt-utils dpkg-dev dpkg-sig unzip ubuntu-dev-tools binutils-arm-linux-gnueabihf
- vault kv get -field=apt.qm64.tech secret/qm64/pgpkeys | gpg --import
- make collect_deb_packages repository_apt prepare_dir
- mv ./dist ./public
dependencies:
needs:
- build:ipfs:amd64
# - build:orion
# - build:ipfs:arm
only:
- master
artifacts:
......
......@@ -26,5 +26,4 @@ prepare_dir: clean_build
cp -aR ./static/* ./dist
.PHONY: prepare
packages: download_orion_deb build_ipfs_deb collect_deb_packages repository_apt
.PHONY: packages
dist: deb_ipfs_amd64 deb_ipfs-service deb_ipfs-gateway collect_deb_packages repository_apt
\ No newline at end of file
......@@ -7,6 +7,7 @@ collect_deb_packages:
-cp build/*.deb dist/apt/
-cp build/deb/*/*.deb dist/apt/
-cp dist/orion/*.deb dist/apt/
-cp static/orion/*.deb dist/apt/
.PHONY: collect_deb_packages
repository_apt:
......
......@@ -8,26 +8,11 @@ DEBFULLNAME ?= "Qm64 OU"
_prepare_ipfs-gateway_deb:
mkdir -p build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}
cp -aR source/ipfs-gateway.deb/* build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/
@echo "Source: ipfs-gateway" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Section: misc" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Priority: optional" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Maintainer: ${DEBFULLNAME} <${EMAIL}>" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Build-Depends: debhelper (>= 9)" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Standards-Version: ${GTW_PKG_VERSION}" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Package: ipfs-gateway" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Depends: ipfs" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Architecture: all" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
@echo "Description: Add system service for IPFS" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
# Building the changelog
@echo "ipfs-gateway (${GTW_PKG_VERSION}) internal; urgency=low" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
@echo " This package has been built by Siderus using an automation pipeline. Please" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
@echo " refer to the official go-ipfs changelog for more information" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
@echo " -- ${DEBFULLNAME} <${EMAIL}> $(shell date -R)" >> build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
# Updates details of the package
sed -i 's/$${VERSION}/${GTW_PKG_VERSION}/' build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/control
# Updates the pseudo-changelog
sed -i 's/$${VERSION}/${GTW_PKG_VERSION}/' build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
sed -i 's/$${DATE}/$(shell date -R)/' build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/changelog
chmod +x build/deb/all/ipfs-gateway-${GTW_PKG_VERSION}/debian/rules
.PHONY: _prepare_ipfs-gateway_deb
......
......@@ -9,25 +9,11 @@ _prepare_ipfs-service_deb:
mkdir -p build/deb/all/ipfs-service-${SVC_PKG_VERSION}
cp -aR source/ipfs-service.deb/* build/deb/all/ipfs-service-${SVC_PKG_VERSION}/
@echo "Source: ipfs-service" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Section: misc" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Priority: optional" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Maintainer: ${DEBFULLNAME} <${EMAIL}>" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Build-Depends: debhelper (>= 9)" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Standards-Version: ${SVC_PKG_VERSION}" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Package: ipfs-service" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Depends: ipfs" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Architecture: all" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
@echo "Description: Add system service for IPFS" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
# Building the changelog
@echo "ipfs-service (${SVC_PKG_VERSION}) internal; urgency=low" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
@echo " This package has been built by Siderus using an automation pipeline. Please" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
@echo " refer to the official go-ipfs changelog for more information" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
@echo " -- ${DEBFULLNAME} <${EMAIL}> $(shell date -R)" >> build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
# Updates details of the package
sed -i 's/$${VERSION}/${GTW_PKG_VERSION}/' build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/control
# Updates the pseudo-changelog
sed -i 's/$${VERSION}/${GTW_PKG_VERSION}/' build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
sed -i 's/$${DATE}/$(shell date -R)/' build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/changelog
chmod +x build/deb/all/ipfs-service-${SVC_PKG_VERSION}/debian/rules
.PHONY: _prepare_ipfs-service_deb
......
......@@ -3,19 +3,14 @@
ARCH ?= amd64
OS ?= linux
ifeq ($(ARCH),amd64)
DEB_ARCH := amd64
endif
ifeq ($(ARCH),arm)
DEB_ARCH := armhf
endif
DEB_ARCH ?= $(ARCH)
IPFS_VERSION?=$(shell curl --silent "https://api.github.com/repos/ipfs/go-ipfs/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
IPFS_PKG_VERSION:=$(shell echo ${IPFS_VERSION} | sed 's/v//')-0
EMAIL ?= "[email protected]"
DEBFULLNAME ?= "Qm64 OU"
_download_ipfs:
mkdir -p build/orig/
curl -L --output build/orig/ipfs-${IPFS_VERSION}-${ARCH}.tar.gz \
......@@ -31,32 +26,13 @@ _unpack_ipfs: _download_ipfs
_prepare_ipfs_deb: _unpack_ipfs
mkdir -p build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}
cp -aR source/ipfs.deb/* build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/
@echo "Source: ipfs" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Section: misc" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Priority: optional" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Maintainer: ${DEBFULLNAME} <${EMAIL}>" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Build-Depends: debhelper (>= 9)" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Standards-Version: ${IPFS_PKG_VERSION}" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Package: ipfs" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
# @echo "Depends: " >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Architecture: ${DEB_ARCH}" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo "Description: IPFS is a global, versioned, peer-to-peer filesystem." >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " It combines good ideas from Git, BitTorrent, Kademlia," >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " SFS, and the Web. It is like a single bittorrent swarm," >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " exchanging git objects. IPFS provides an interface as" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " simple as the HTTP web, but with permanence built in." >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " You can also mount the world at /ipfs." >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
@echo " This package is maintained and distributed by Siderus." >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
# Building the changelog
@echo "ipfs (${IPFS_PKG_VERSION}) internal; urgency=low" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
@echo " This package has been built by Siderus using an automation pipeline. Please" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
@echo " refer to the official go-ipfs changelog for more information" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
@echo " " >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
@echo " -- ${DEBFULLNAME} <${EMAIL}> $(shell date -R)" >> build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
chmod +x build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/rules
# Updates details of the package
sed -i 's/$${VERSION}/${IPFS_PKG_VERSION}/' build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
sed -i 's/$${DEB_ARCH}/${DEB_ARCH}/' build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/control
# Updates the pseudo-changelog
sed -i 's/$${VERSION}/${IPFS_PKG_VERSION}/' build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
sed -i 's/$${DATE}/$(shell date -R)/' build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/debian/changelog
# Move the source here
cp -aR build/source/go-ipfs/${ARCH}/go-ipfs build/deb/${DEB_ARCH}/ipfs-${IPFS_PKG_VERSION}/
.PHONY: _prepare_ipfs_deb
......
ipfs-gateway (${VERSION}) internal; urgency=low
This package has been built by Siderus / Qm64 using an automation pipeline.
Please refer to the official go-ipfs changelog for more information
-- Qm64 OU <[email protected]> ${DATE}
Source: ipfs-gateway
Section: misc
Priority: optional
Maintainer: Qm64 OU <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: ${VERSION}
Package: ipfs-gateway
Depends: ipfs
Architecture: all
Description: Add system service for IPFS
ipfs-service (${VERSION}) internal; urgency=low
This package has been built by Siderus / Qm64 using an automation pipeline.
Please refer to the official go-ipfs changelog for more information
-- Qm64 OU <[email protected]> ${DATE}
Source: ipfs-service
Section: misc
Priority: optional
Maintainer: Qm64 OU <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: ${VERSION}
Package: ipfs-service
Depends: ipfs
Architecture: all
Description: Add system service for IPFS
ipfs (${VERSION}) internal; urgency=low
This package has been built by Qm64/Siderus using an automation pipeline.
Please refer to the official go-ipfs changelog for more information.
-- Qm64 OU <[email protected]> ${DATE}
Source: ipfs
Section: misc
Priority: optional
Maintainer: Qm64 OU <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: ${VERSION}
Package: ipfs
Architecture: ${DEB_ARCH}
Description: IPFS is a global, versioned, peer-to-peer filesystem.
It combines good ideas from Git, BitTorrent, Kademlia,
SFS, and the Web. It is like a single bittorrent swarm,
exchanging git objects. IPFS provides an interface as
simple as the HTTP web, but with permanence built in.
You can also mount the world at /ipfs.
This package is maintained and distributed by Siderus / Qm64.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment