Skip to content

Commit

Permalink
setup ci using github actions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josua-SR authored Sep 9, 2024
1 parent 3c5e9ba commit 82780ea
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build

on:
push:
branches: [ "develop-pure" ]
pull_request:
branches: [ "develop-pure" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build_tag:
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
build_tag: ${{ steps.tag_step.outputs.build_tag }}
steps:
- name: Checkout pull-request
uses: actions/checkout@v4

- name: Get build tag
id: tag_step
run: |
build_tag=$(date +%Y-%m-%d)_$(git rev-parse --short HEAD)
echo "build_tag=$build_tag" >> "$GITHUB_OUTPUT"
build_debian_12_armhf:
needs: build_tag
runs-on: ubuntu-24.04
timeout-minutes: 30
outputs:
build_tag: ${{ steps.tag_step.outputs.build_tag }}
steps:
- name: Checkout pull-request
uses: actions/checkout@v4

- name: Generate Installers
run: |
rm -rf output
./runme.sh debian_12_armhf
- name: Publish to S3
if: github.ref == 'refs/heads/develop-pure' && github.event_name != 'pull_request'
uses: shallwefootball/[email protected]
with:
aws_key_id: ${{ secrets.IMAGES_S3_ACCESS }}
aws_secret_access_key: ${{ secrets.IMAGES_S3_SECRET }}
aws_bucket: ${{ secrets.IMAGES_S3_BUCKET }}
endpoint: ${{ secrets.IMAGES_S3_HOST }}
source_dir: output
destination_dir: Pure-Debian/armhf/12/${{ needs.build_tag.outputs.build_tag }}
2 changes: 1 addition & 1 deletion README.arm64.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This page provides instructions for installing official [Debian from debian.org]

SolidRun provides prebuilt installer disk images:

- [TODO](https://images.solid-run.com/)
- [Debian Bookworm (12)](https://images.solid-run.com/Pure-Debian/arm64/12/)

Download an image above, decompress and write it to a suitable installation media such as USB flash drive or SD-Card, e.g. using `dd` or [etcher.io](https://etcher.io/)
The installer media **can not be used as installation destination**: E.g. when installing Debian to SD-Card, Installer must be on USB Drive.
Expand Down
2 changes: 1 addition & 1 deletion README.armhf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This page provides instructions for installing official [Debian from debian.org]

SolidRun provides prebuilt installer disk images:

- [TODO](https://images.solid-run.com/)
- [Debian Bookworm (12)](https://images.solid-run.com/Pure-Debian/armhf/12/)

Download an image above, decompress and write it to a suitable installation media such as USB flash drive or SD-Card, e.g. using `dd` or [etcher.io](https://etcher.io/)
The installer media **can not be used as installation destination**: E.g. when installing Debian to SD-Card, Installer must be on USB Drive.
Expand Down

0 comments on commit 82780ea

Please sign in to comment.