Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 975e327

Browse files
authoredAug 13, 2021
Improved initial repo setup
1 parent ffe9d19 commit 975e327

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed
 

‎.github/workflows/ci.yaml

+11-10
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ jobs:
2727
mkdir -p repo/all/x86_64/pool
2828
find -iname '*.rpm' -type f -exec bash -c "mkdir -p \`dirname repo/all/x86_64/pool/{}\` && cp {} repo/all/x86_64/pool/{}" \;
2929
30-
- name: Update Metadata
31-
run: |
32-
if test -f "repo/all/x86_64/repodata"; then
33-
docker run --rm -v "${PWD}/repo/all/x86_64:/pwd" --workdir /pwd fedora \
34-
bash -c "dnf install -y createrepo && createrepo -d /pwd"
35-
else
36-
docker run --rm -v "${PWD}/repo/all/x86_64:/pwd" --workdir /pwd fedora \
37-
bash -c "dnf install -y createrepo && createrepo -d --update /pwd"
38-
fi
39-
4030
- name: Import GPG Key
4131
uses: crazy-max/ghaction-import-gpg@v3
4232
with:
@@ -49,10 +39,21 @@ jobs:
4939
docker run --rm -v "${PWD}/repo:/pwd" -v "${HOME}/.gnupg:/root/.gnupg" -v "${HOME}/.rpmmacros:/root/.rpmmacros" --workdir /pwd fedora \
5040
bash -c "dnf install -y findutils rpm-sign && find -iname '*.rpm' -type f -exec rpm --addsign {} \;"
5141
42+
- name: Update Metadata
43+
run: |
44+
if test -f "repo/all/x86_64/repodata"; then
45+
docker run --rm -v "${PWD}/repo/all/x86_64:/pwd" --workdir /pwd fedora \
46+
bash -c "dnf install -y createrepo && createrepo -d /pwd"
47+
else
48+
docker run --rm -v "${PWD}/repo/all/x86_64:/pwd" --workdir /pwd fedora \
49+
bash -c "dnf install -y createrepo && createrepo -d --update /pwd"
50+
fi
51+
5252
- name: Copy README.md
5353
run: |
5454
cp README.md repo/README.md
5555
cp LICENSE repo/LICENSE
56+
cp -r config repo
5657
5758
- name: Deploy Repository
5859
uses: JamesIves/github-pages-deploy-action@4.1.4

‎README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
You have to add the repository to the package sources:
66

77
```bash
8-
cat << EOF > /etc/yum.repos.d/m4rc3l.repo
9-
[m4rc3l.de]
10-
name=m4rc3l.de
11-
baseurl=https://rpm.m4rc3l.de/all/$basearch
12-
enabled=1
13-
gpgcheck=1
14-
gpgkey=https://m4rc3l.de/static/rpm-repo.pem
15-
EOF
8+
sudo dnf -y install dnf-plugins-core
9+
10+
sudo dnf config-manager \
11+
--add-repo \
12+
https://rpm.m4rc3l.de/config/all.repo
1613
```
1714

1815
## Packages
@@ -21,6 +18,10 @@ EOF
2118
sudo dnf install <package>
2219
```
2320

21+
When you install the first package, you have to verify the GPG key.
22+
<br>
23+
The fingerprint is `C907 8A5C CE5C 9256 E175 C0BD 94C7 2B06 F259 2DD0`.
24+
2425
| Package | Description | Reposetory |
2526
| ----------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
2627
| `genpw` | Generate strong passwords directly from the command line. | [MarcelCoding/debian-genpw](https://github.com/MarcelCoding/debian-genpw) |

‎config/all.repo

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[m4rc3l.de]
2+
name=m4rc3l.de
3+
baseurl=https://rpm.m4rc3l.de/all/$basearch
4+
enabled=1
5+
gpgcheck=1
6+
gpgkey=https://m4rc3l.de/static/rpm-repo.pem

0 commit comments

Comments
 (0)
Please sign in to comment.