Skip to content

Commit 3d6954a

Browse files
Revert "Website build"
1 parent f4e7e9d commit 3d6954a

File tree

104 files changed

+1685
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1685
-434
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Download ISO from '...'
16+
2. Install on '...'
17+
3. Configure '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**System Information:**
24+
- ISO Version: [e.g., 2023.12.01]
25+
- Hardware: [e.g., ThinkPad X1 Carbon]
26+
- BIOS/UEFI Version: [if relevant]
27+
- Installation Method: [e.g., USB boot, VM]
28+
29+
**Additional context**
30+
Add any other context about the problem here, such as:
31+
- Relevant system logs
32+
- Error messages
33+
- Screenshots
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Implementation details (optional)**
20+
If you have technical knowledge about how this could be implemented:
21+
- Required packages
22+
- Configuration changes
23+
- System modifications
24+
25+
**Additional context**
26+
Add any other context or screenshots about the feature request here.

.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+
# Update for GitHub Actions dependencies
4+
- package-ecosystem: "github-actions"
5+
directory: "/.github/workflows" # Directory for GitHub Actions workflows
6+
schedule:
7+
interval: "daily" # Check for updates daily (previously mentioned as weekly)
8+
time: "08:00" # Run every day at 08:00 UTC, day specification removed as it's redundant
9+
labels:
10+
- "github-actions"
11+
assignees:
12+
- "Githubguy132010"

.github/workflows/build-check.yaml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Check if ISO can be built
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Arch Linux Container
20+
run: |
21+
docker run --privileged --name arch-container -d -v ${{ github.workspace }}:/workdir archlinux:latest sleep infinity
22+
23+
- name: Build ISO in Arch Container
24+
run: |
25+
docker exec arch-container bash -c "
26+
pacman -Syu --noconfirm &&
27+
pacman -S --noconfirm git archiso grub &&
28+
cd /workdir &&
29+
mkarchiso -v -w workdir/ -o out/ .
30+
"
31+
32+
- name: Rename ISO to Arch.iso
33+
run: |
34+
docker exec arch-container bash -c "
35+
iso_file=\$(ls /workdir/out/*.iso 2>/dev/null | head -n 1) &&
36+
[ -n \"\$iso_file\" ] && mv \$iso_file /workdir/out/Arch.iso || echo 'No ISO file found.'
37+
"
38+
39+
- name: Copy ISO to Host
40+
run: |
41+
docker cp arch-container:/workdir/out/Arch.iso ${{ github.workspace }}/ || echo 'Failed to copy ISO to host.'
42+
43+
- name: Get current date
44+
id: date
45+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
46+
47+
- name: Create GitHub Release
48+
id: create_release
49+
uses: actions/[email protected]
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
with:
53+
tag_name: v${{ github.run_id }}-release
54+
release_name: "Arch Linux Release"
55+
body: "Arch Linux ISO built on ${{ steps.date.outputs.date }}"
56+
draft: false
57+
prerelease: false
58+
59+
- name: Upload ISO to GitHub Release
60+
uses: actions/upload-release-asset@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
with:
64+
upload_url: ${{ steps.create_release.outputs.upload_url }}
65+
asset_path: ${{ github.workspace }}/Arch.iso
66+
asset_name: Arch.iso
67+
asset_content_type: application/octet-stream
68+
69+
- name: Delete GitHub Release
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
run: |
73+
release_id=$(curl -s \
74+
-H "Authorization: token $GITHUB_TOKEN" \
75+
-H "Accept: application/vnd.github.v3+json" \
76+
https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ github.run_id }}-release | jq -r .id) &&
77+
curl -X DELETE \
78+
-H "Authorization: token $GITHUB_TOKEN" \
79+
-H "Accept: application/vnd.github.v3+json" \
80+
https://api.github.com/repos/${{ github.repository }}/releases/$release_id
81+
82+
- name: Delete Git Tag
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
run: |
86+
curl -X DELETE \
87+
-H "Authorization: token $GITHUB_TOKEN" \
88+
-H "Accept: application/vnd.github.v3+json" \
89+
https://api.github.com/repos/${{ github.repository }}/git/refs/tags/v${{ github.run_id }}-release
90+
91+
- name: Clean Up
92+
run: |
93+
docker stop arch-container || echo 'Failed to stop the container.'
94+
docker rm arch-container || echo 'Failed to remove the container.'

.github/workflows/build.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build ISO
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *' # Run the workflow every day at midnight
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest # Use a standard runner
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Arch Linux Container
17+
run: |
18+
docker run --privileged --name arch-container -d -v ${{ github.workspace }}:/workdir archlinux:latest sleep infinity
19+
20+
- name: Build ISO in Arch Container
21+
run: |
22+
set -e
23+
docker exec arch-container bash -c "
24+
pacman -Syu --noconfirm &&
25+
pacman -S --noconfirm git archiso grub &&
26+
cd /workdir &&
27+
mkarchiso -v -w workdir/ -o out/ .
28+
"
29+
30+
- name: Rename ISO to Arch.iso
31+
run: |
32+
set -e
33+
docker exec arch-container bash -c "
34+
iso_file=\$(ls /workdir/out/*.iso 2>/dev/null | head -n 1) &&
35+
[ -n \"\$iso_file\" ] && mv \$iso_file /workdir/out/Arch.iso || echo 'No ISO file found.'
36+
"
37+
38+
- name: List ISO files
39+
run: |
40+
docker exec arch-container bash -c "ls -l /workdir/out/" || echo 'Failed to list files.'
41+
42+
- name: Copy ISO to Host
43+
run: |
44+
docker cp arch-container:/workdir/out/Arch.iso ${{ github.workspace }}/ || echo 'Failed to copy ISO to host.'
45+
46+
- name: Get current date
47+
id: date
48+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
49+
50+
# Create a release on GitHub using GITHUB_TOKEN
51+
- name: Create GitHub Release
52+
id: create_release # Adding an ID to reference the release step
53+
uses: actions/[email protected]
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
tag_name: v${{ github.run_id }}-release
58+
release_name: "Arch Linux Release"
59+
body: |
60+
This release contains the Arch Linux ISO built on ${{ steps.date.outputs.date }}.
61+
draft: false
62+
prerelease: false
63+
64+
# Upload the ISO to the GitHub release with a specific, predictable name
65+
- name: Upload ISO to GitHub Release
66+
uses: actions/upload-release-asset@v1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
upload_url: ${{ steps.create_release.outputs.upload_url }}
71+
asset_path: ${{ github.workspace }}/Arch.iso
72+
asset_name: Arch.iso
73+
asset_content_type: application/octet-stream
74+
75+
- name: Clean Up
76+
run: |
77+
docker stop arch-container || echo 'Failed to stop the container.'
78+
docker rm arch-container || echo 'Failed to remove the container.'

.github/workflows/deploy.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check to make sure Dockerfile works
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
schedule:
8+
# Run the workflow on the 1st of every month at midnight
9+
- cron: 0 0 * * *
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest # Use a standard runner
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Build and Run Docker container
20+
run: |
21+
set -e # Exit immediately if a command exits with a non-zero status
22+
docker build -t arch-iso-builder . || { echo "Docker build failed"; exit 1; }
23+
docker run --rm --privileged -v "$(pwd)":/workdir arch-iso-builder bash -c "mkarchiso -v -w workdir/ -o out/ ." || { echo "ISO creation failed"; exit 1; }

CONTRIBUTING.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Contributing to Arch Linux Without the Beeps
2+
3+
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
4+
5+
- Reporting a bug
6+
- Discussing the current state of the code
7+
- Submitting a fix
8+
- Proposing new features
9+
- Becoming a maintainer
10+
11+
## Development Process
12+
13+
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
14+
15+
1. Fork the repo and create your branch from `main`.
16+
2. If you've added code that should be tested, add tests.
17+
3. If you've changed APIs, update the documentation.
18+
4. Ensure the test suite passes.
19+
5. Make sure your code follows the existing style.
20+
6. Issue that pull request!
21+
22+
## Pull Request Process
23+
24+
1. Update the README.md with details of changes to the interface, if applicable.
25+
2. Update the version numbers in any examples files and the README.md to the new version.
26+
3. The PR will be merged once you have the sign-off of at least one other developer.
27+
28+
## Any contributions you make will be under our License
29+
In short, when you submit code changes, your submissions are understood to be under the same [License](LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern.
30+
31+
## Report bugs using GitHub's [issue tracker](../../issues)
32+
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](../../issues/new).
33+
34+
## Write bug reports with detail, background, and sample code
35+
36+
**Great Bug Reports** tend to have:
37+
38+
- A quick summary and/or background
39+
- Steps to reproduce
40+
- Be specific!
41+
- Give sample code if you can.
42+
- What you expected would happen
43+
- What actually happens
44+
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
45+
46+
## License
47+
By contributing, you agree that your contributions will be licensed under its License.
48+
49+
## References
50+
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md).

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Custom Public License (CPL)
2+
3+
Copyright (c) 2024, Thomas Brugman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to use,
7+
copy, modify, and distribute the Software, subject to the following conditions:
8+
9+
1. The Software, and any modifications or derivatives thereof, must remain
10+
open-source and licensed under this same license.
11+
12+
2. Commercial use, including selling or sublicensing the Software or its
13+
derivatives, is prohibited without explicit written permission from the
14+
copyright holder.
15+
16+
3. The above copyright notice and this license shall be included in all
17+
copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
THE SOFTWARE.

0 commit comments

Comments
 (0)