Skip to content

Commit 86d6fff

Browse files
committedSep 9, 2024
setup ci using github actions
1 parent 3c5e9ba commit 86d6fff

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed
 

‎.github/workflows/build.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ "develop-pure" ]
6+
pull_request:
7+
branches: [ "develop-pure" ]
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
build_tag:
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 5
15+
outputs:
16+
build_tag: ${{ steps.tag_step.outputs.build_tag }}
17+
steps:
18+
- name: Checkout pull-request
19+
uses: actions/checkout@v4
20+
21+
- name: Get build tag
22+
id: tag_step
23+
run: |
24+
build_tag=$(date +%Y-%m-%d)_$(git rev-parse --short HEAD)
25+
echo "build_tag=$build_tag" >> "$GITHUB_OUTPUT"
26+
27+
build_debian_12_armhf:
28+
needs: build_tag
29+
runs-on: ubuntu-24.04
30+
timeout-minutes: 30
31+
outputs:
32+
build_tag: ${{ steps.tag_step.outputs.build_tag }}
33+
steps:
34+
- name: Checkout pull-request
35+
uses: actions/checkout@v4
36+
37+
- name: Generate Installers
38+
run: |
39+
rm -rf output
40+
./runme.sh debian_12_armhf
41+
42+
- name: Publish to S3
43+
if: github.ref == 'refs/heads/develop-pure' && github.event_name != 'pull_request'
44+
uses: shallwefootball/upload-s3-action@v1.3.3
45+
with:
46+
aws_key_id: ${{ secrets.IMAGES_S3_ACCESS }}
47+
aws_secret_access_key: ${{ secrets.IMAGES_S3_SECRET }}
48+
aws_bucket: ${{ secrets.IMAGES_S3_BUCKET }}
49+
endpoint: ${{ secrets.IMAGES_S3_HOST }}
50+
source_dir: output
51+
destination_dir: Pure-Debian/armhf/12/${{ needs.build_tag.outputs.build_tag }}

‎README.arm64.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This page provides instructions for installing official [Debian from debian.org]
1515

1616
SolidRun provides prebuilt installer disk images:
1717

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

2020
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/)
2121
The installer media **can not be used as installation destination**: E.g. when installing Debian to SD-Card, Installer must be on USB Drive.

‎README.armhf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This page provides instructions for installing official [Debian from debian.org]
1414

1515
SolidRun provides prebuilt installer disk images:
1616

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

1919
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/)
2020
The installer media **can not be used as installation destination**: E.g. when installing Debian to SD-Card, Installer must be on USB Drive.

0 commit comments

Comments
 (0)