-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (45 loc) · 1.46 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 }}