-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve build debian package workflow (#527)
* Improve deb builder workflow * Use buildx instead * Fix * Update * Fix permission * update changelog * update build params
- Loading branch information
1 parent
c8cacd7
commit 8991856
Showing
6 changed files
with
19 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
ARG IMAGE_ARCH="amd64" | ||
ARG PKG_VERSION="0.0.1" | ||
ARG PKG_ARCH="amd64" | ||
FROM docker.io/golang:1.22-bookworm AS build | ||
|
||
FROM ${IMAGE_ARCH}/golang:buster AS build | ||
|
||
ARG PKG_ARCH | ||
ARG PKG_VERSION | ||
ARG WAYBACK_IPFS_APIKEY | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -q && \ | ||
apt-get install -y -qq --no-install-recommends build-essential devscripts dh-make dh-systemd && \ | ||
apt-get install -y -qq build-essential devscripts dh-make debhelper && \ | ||
mkdir -p /build/debian /pkg && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /build/debian /pkg | ||
COPY . /src | ||
WORKDIR /src/build/debian | ||
|
||
ENV WAYBACK_IPFS_APIKEY ${WAYBACK_IPFS_APIKEY} | ||
ENV PKG_VERSION ${PKG_VERSION} | ||
ENV PKG_ARCH ${PKG_ARCH} | ||
|
||
CMD ["/src/build/debian/builder"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Source: wayback | ||
Maintainer: Wayback Archiver <[email protected]> | ||
Build-Depends: debhelper (>= 9), dh-systemd | ||
Build-Depends: debhelper (>= 9.20160709) | dh-systemd | ||
|
||
Package: wayback | ||
Architecture: __PKG_ARCH__ | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters