Skip to content

Commit 8a23bb2

Browse files
committed
Initial commit
1 parent 214f1dd commit 8a23bb2

4 files changed

Lines changed: 53 additions & 26 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
target-branch: "el10"
11+
schedule:
12+
interval: "weekly"

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Docker
2-
2+
permissions:
3+
contents: read
34
on:
45
workflow_dispatch:
56
schedule:
@@ -18,30 +19,30 @@ jobs:
1819
packages: write
1920
strategy:
2021
matrix:
21-
branch: ["kitten", "10.1"]
22+
branch: ["kitten", "el10"]
2223
fail-fast: false
2324
steps:
2425
- name: Checkout repository
25-
uses: actions/checkout@v6
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2627
with:
2728
ref: ${{ matrix.branch }}
2829

2930
- name: Set up QEMU
30-
uses: docker/setup-qemu-action@v4
31+
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
3132

3233
- name: Setup Docker buildx
33-
uses: docker/setup-buildx-action@v4
34+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
3435

3536
- name: Log into registry ${{ env.REGISTRY }}
3637
if: github.event_name != 'pull_request'
37-
uses: docker/login-action@v4
38+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
3839
with:
3940
registry: ${{ env.REGISTRY }}
4041
username: ${{ github.actor }}
4142
password: ${{ secrets.GITHUB_TOKEN }}
4243

4344
- name: Build and push Docker image
44-
uses: docker/build-push-action@v7
45+
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
4546
with:
4647
context: .
4748
platforms: linux/amd64,linux/arm64

Dockerfile

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
FROM almalinux:10-kitten-minimal
1+
FROM registry.fedoraproject.org/eln:latest
22

3-
RUN curl https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o epel-release-latest-10.noarch.rpm &\
4-
curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-cli.repo &\
5-
echo 'max_parallel_downloads=20' >> /etc/dnf/dnf.conf &\
6-
curl 'https://repos.fyralabs.com/terrael10-kitten/?sort=2' -o page.html &\
7-
wait &&\
8-
curl https://repos.fyralabs.com/terrael10-kitten/$(cat page.html | sed -nE 's@.*"(terra-release-[^"]+)".*@\1@p') -o terra-release.rpm &&\
9-
curl https://repos.fyralabs.com/terrael10-kitten/$(cat page.html | sed -nE 's@.*"(terra-gpg-keys-[^"]+)".*@\1@p') -o terra-gpg-keys.rpm &&\
10-
rm page.html && \
11-
rpm -i ./*.rpm && \
12-
#sed -Ei "s@^#baseurl=.+@baseurl=https://dl.fedoraproject.org/pub/epel/\$releasever_major\${releasever_minor:+.\$releasever_minor}/Everything/\$basearch/@" /etc/yum.repos.d/epel.repo && \
13-
#sed -Ei '/^metalink/ s/^/#/' /etc/yum.repos.d/epel.repo && \
14-
sed -Ei '/\[crb\]/,/^$/ s@^enabled=0$@enabled=1@' /etc/yum.repos.d/almalinux-crb.repo && \
15-
microdnf install -y \
16-
--setopt=install_weak_deps=0 \
17-
terra-mock-configs anda-srpm-macros terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-kitten-release-latest \
18-
subatomic-cli anda rpm-build git-lfs podman fuse-overlayfs mold dnf-plugins-core \
19-
wget less gh util-linux bash bzip2 cpio diffutils findutils gawk glibc-minimal-langpack grep info patch sed tar gzip unzip which xz jq &&\
20-
microdnf clean all
3+
COPY dnf.conf /etc/dnf/dnf.conf
4+
5+
RUN curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-cli.repo
6+
RUN dnf install -y --nogpgcheck --repo=terra terra-gpg-keys
7+
RUN dnf up -y
8+
RUN dnf install -y \
9+
terra-mock-configs terra-mock-gpg-keys anda-srpm-macros terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-release adoptium-temurin-java-repository \
10+
subatomic-cli anda{,-srpm-macros} rpm-build podman fuse-overlayfs mold dnf-plugins-core \
11+
wget less gh util-linux bash bzip2 cpio diffutils findutils gawk glibc-minimal-langpack grep info patch sed tar gzip unzip which xz jq
12+
RUN dnf clean all

dnf.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[main]
2+
keepcache=1
3+
retries=20
4+
gpgcheck=1
5+
install_weak_deps=0
6+
metadata_expire=-1
7+
best=True
8+
tsflags=nodocs
9+
max_parallel_downloads=20
10+
#reposdir=/dev/null
11+
12+
[terra]
13+
name=Terra EL Kitten $releasever
14+
baseurl=https://repos.fyralabs.com/terrael-eln
15+
metadata_expire=0
16+
type=rpm
17+
gpgcheck=1
18+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-terra-eln
19+
repo_gpgcheck=1
20+
enabled=1
21+
enabled_metadata=1
22+
priority=150

0 commit comments

Comments
 (0)