feat: initial commit
Some checks failed
Build and publish / build-and-push-arch (push) Failing after 11s
Some checks failed
Build and publish / build-and-push-arch (push) Failing after 11s
This commit is contained in:
commit
8ea26672f5
4 changed files with 65 additions and 0 deletions
37
.forgejo/workflows/build-and-publish.yaml
Normal file
37
.forgejo/workflows/build-and-publish.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Build and publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push-arch:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
options: -v /dind/docker.sock:/var/run/docker.sock
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v6
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v6
|
||||||
|
|
||||||
|
- name: Login to the registry
|
||||||
|
uses: docker/login-action@v6
|
||||||
|
with:
|
||||||
|
registry: guardianproject.dev
|
||||||
|
username: irl
|
||||||
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
file: Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: guardianproject.dev/${{ github.repository }}:12
|
||||||
|
|
7
.gbp.conf
Normal file
7
.gbp.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[DEFAULT]
|
||||||
|
pristine-tar = True
|
||||||
|
pristine-tar-commit = True
|
||||||
|
upstream-branch=upstream/latest
|
||||||
|
debian-branch=debian/latest
|
||||||
|
pbuilder = True
|
||||||
|
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM debian:12
|
||||||
|
|
||||||
|
RUN set -ex \
|
||||||
|
&& sed -i -- 's/Types: deb/Types: deb deb-src/g' /etc/apt/sources.list.d/debian.sources \
|
||||||
|
&& apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||||
|
build-essential \
|
||||||
|
devscripts \
|
||||||
|
fakeroot \
|
||||||
|
git \
|
||||||
|
git-buildpackage \
|
||||||
|
&& apt clean
|
||||||
|
|
||||||
|
COPY .gbp.conf /root/.gbp.conf
|
||||||
|
|
7
Justfile
Normal file
7
Justfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t guardianproject.dev/ops/docker-debpkg:12 .
|
||||||
|
|
||||||
|
debian:
|
||||||
|
docker run --rm --name debian -it guardianproject.dev/ops/docker-debpkg /bin/bash -l
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue