-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (35 loc) · 1.15 KB
/
publish.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
name: eve-kernel build
on:
workflow_dispatch:
pull_request_review:
types: [ submitted ]
push:
branches:
- "eve-kernel-riscv64-v6.1.106-generic"
env:
branch_name: "refs/heads/eve-kernel-riscv64-v6.1.106-generic"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
packages:
runs-on: self-hosted
if: ${{ github.event.review.state == 'approved' }} || github.ref == env.branch_name
steps:
- name: Get eve-kernel
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Build eve-kernel-riscv64
run: |
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} kernel-gcc
- name: Log in to Docker Hub
if: ${{ github.ref == env.branch_name }}
uses: docker/login-action@v3
with:
username: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}
- name: Push eve-kernel-riscv64-v6.1.106-generic if PR approved or pushed
if: ${{ github.ref == env.branch_name }}
run: |
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} push-gcc