Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup ci using github actions #1

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/upload-s3-action@v1.3.3
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
@@ -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.
2 changes: 1 addition & 1 deletion README.armhf.md
Original file line number Diff line number Diff line change
@@ -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.