Skip to content

Commit

Permalink
[intial] commit
Browse files Browse the repository at this point in the history
  • Loading branch information
philmmanjaro committed Jun 12, 2022
0 parents commit c537739
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.iso filter=lfs diff=lfs merge=lfs -text
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
23 changes: 23 additions & 0 deletions .github/workflows/count_downloads.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: count_downloads

on:
workflow_dispatch:
schedule:
- cron: '30 * * * *'

jobs:
count:
runs-on: ubuntu-latest
steps:
-
name: checkout
uses: actions/checkout@v2
-
run: |
curl -s https://api.github.com/repos/manjaro-pinephone/gnome-mobile/releases | egrep 'download_count' | cut '-d:' -f 2 | sed 's/,/+/' | xargs echo | xargs -I N echo N 0 | bc >docs/_includes/download_count
-
run: |
git config --global user.name "Github Update Bot"
git config --global user.email "github@manjaro.org"
git add docs/_includes/download_count
git commit -m "docs: update download count to $(cat docs/_includes/download_count)" && git push || echo "## no change in the download count"
101 changes: 101 additions & 0 deletions .github/workflows/image_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: image_build
on:
workflow_dispatch:
# schedule:
# - cron: '30 2 * * *'

jobs:
prepare_release:
runs-on: ubuntu-20.04
steps:
-
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
-
id: time
uses: nanzm/get-time-action@v1.1
with:
format: 'YYYYMMDDHHmm'
-
id: release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.time.outputs.time }}
release_name: Release ${{ steps.time.outputs.time }}
draft: false
prerelease: false
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
release_id: ${{ steps.release.outputs.id }}

release:
runs-on: ubuntu-20.04
needs: prepare_release
strategy:
matrix:
DEVICE: [pinephone, pinephonepro]
EDITION: [gnome-mobile]
BRANCH: [unstable]
steps:
-
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
-
id: time
uses: nanzm/get-time-action@v1.1
with:
format: 'YYYYMMDD'
-
id: image-build
uses: manjaro-arm/rootfs@master
with:
arm-profiles-repo: https://github.com/manjaro-pinephone/arm-profiles
device: ${{ matrix.device }}
edition: ${{ matrix.edition }}
branch: ${{ matrix.branch }}
version: ${{ steps.time.outputs.time }}
#CI_PUB_KEY: "${{ secrets.CI_PUB_KEY }}"
#CI_GPG_SECRET: "${{ secrets.CI_GPG_SECRET }}"
#CI_GPG_PASSPHRASE: "${{ secrets.CI_GPG_PASSPHRASE }}"
-
id: upload_release
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_PATH }}
asset_name: ${{ env.FILE_PATH }}
asset_content_type: application/x-iso-image
-
id: upload_sha1
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_SHA1 }}
asset_name: ${{ env.FILE_SHA1 }}
asset_content_type: text/plain
-
id: upload_pkg
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_PKG }}
asset_name: ${{ env.FILE_PKG }}
asset_content_type: text/plain
-
name: rollback_release
if: failure()
uses: author/action-rollback@stable
with:
release_id: ${{ needs.prepare_release.outputs.release_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.iso
manjaro-tools
pkg-cache
iso-profiles
iso
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Manjaro Gnome-Mobile Developer Edition
[![iso_build](https://github.com/manjaro-pinephone/gnome-mobile/workflows/image_build/badge.svg)](https://github.com/manjaro-pinephone/gnome-mobile/actions)

## description

Development branch for Gnome-Mobile of Manjaro Linux for the Pinephone

## where can I download an iso?

Images are build and uploaded in a relatively regular interval to [github releases](https://github.com/manjaro-pinephone/gnome-mobile/releases)

## sources

- [image profile](https://github.com/manjaro-pinephone/arm-profiles)

## building

1. check out the arm-profiles
2. `sudo buildarmimg -d pinephone -e gnome-mobile -v dev-20210227 -b unstable`

## credentials

```
user: manjaro
password: 123456
```
1 change: 1 addition & 0 deletions docs/_includes/download_count
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
15 changes: 15 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
---

<!doctype html>
<html>

<head>
<title>Manjaro Gnome Mobile</title>
</head>

<body>
<pre>{% include url.href %}</pre>
</body>

</html>

0 comments on commit c537739

Please sign in to comment.