Skip to content

Commit 5247d5e

Browse files
committed
Adjust script naming
1 parent a60a35d commit 5247d5e

File tree

8 files changed

+23
-27
lines changed

8 files changed

+23
-27
lines changed

.github/workflows/build-the-docker-image-of-armbian.yml renamed to .github/workflows/build-armbian-docker-image.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#=====================================================================================
22
# https://github.com/ophub/amlogic-s9xxx-armbian
3-
# Description: Build the Docker image of Armbian
3+
# Description: Build Armbian Docker image
44
# Instructions: https://github.com/docker/build-push-action
55
# Build and Push to: https://hub.docker.com/
66
#=====================================================================================
77

8-
name: Build the Docker image of Armbian
8+
name: Build Armbian Docker image
99

1010
on:
1111
repository_dispatch:
@@ -31,7 +31,7 @@ on:
3131

3232
env:
3333
TZ: America/New_York
34-
MAKE_DOCKER_SH: compile-kernel/tools/script/docker/armbian_docker.sh
34+
MAKE_DOCKER_SH: compile-kernel/tools/script/docker/build_armbian_docker_image.sh
3535
DOCKER_OUTPATH: out
3636

3737
jobs:
@@ -52,6 +52,7 @@ jobs:
5252
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5353
-s "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases?per_page=100" |
5454
grep -o "Armbian_.*${{ inputs.source_branch }}.*/.*rootfs.tar.gz" |
55+
sort -urV |
5556
head -n 1
5657
)"
5758
[[ -z "${armbian_url}" ]] && echo -e "Armbian file not found!" && exit 1
@@ -69,11 +70,6 @@ jobs:
6970
${MAKE_DOCKER_SH}
7071
echo "status=success" >> ${GITHUB_OUTPUT}
7172
72-
- name: Set up QEMU
73-
id: qemu
74-
if: ${{ steps.make.outputs.status }} == 'success' && !cancelled()
75-
uses: docker/setup-qemu-action@v3
76-
7773
- name: Set up Docker Buildx
7874
id: buildx
7975
if: (!cancelled())

.github/workflows/build-armbian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2021 https://github.com/ophub/amlogic-s9xxx-armbian
44
#==========================================================================
55

6-
name: Build armbian
6+
name: Build Armbian
77

88
on:
99
repository_dispatch:
@@ -242,7 +242,7 @@ on:
242242

243243
env:
244244
TZ: America/New_York
245-
ROOTFS_SCRIPT: compile-kernel/tools/script/docker/armbian_rootfs.sh
245+
ROOTFS_SCRIPT: compile-kernel/tools/script/docker/build_armbian_rootfs_file.sh
246246

247247
jobs:
248248
build:

.github/workflows/build-homeassistant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ on:
243243

244244
env:
245245
TZ: America/New_York
246-
ROOTFS_SCRIPT: compile-kernel/tools/script/docker/armbian_rootfs.sh
246+
ROOTFS_SCRIPT: compile-kernel/tools/script/docker/build_armbian_rootfs_file.sh
247247

248248
jobs:
249249
build:

.github/workflows/compile-kernel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#==========================================================================
2-
# Description: Compile the kernel
2+
# Description: Compile the Kernel
33
# Copyright (C) 2021 https://github.com/unifreq/openwrt_packit
44
# Copyright (C) 2021 https://github.com/ophub/amlogic-s9xxx-armbian
55
#==========================================================================
66

7-
name: Compile the kernel
7+
name: Compile the Kernel
88

99
on:
1010
repository_dispatch:

.github/workflows/rebuild-armbian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2021 https://github.com/ophub/amlogic-s9xxx-armbian
44
#==========================================================================
55

6-
name: Rebuild armbian
6+
name: Rebuild Armbian
77

88
on:
99
repository_dispatch:

.github/workflows/use-releases-file-to-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2021 https://github.com/ophub/amlogic-s9xxx-armbian
44
#==========================================================================
55

6-
name: Use Releases file to rebuild armbian
6+
name: Use Releases file to rebuild Armbian
77

88
on:
99
repository_dispatch:

compile-kernel/tools/script/docker/armbian_docker.sh renamed to compile-kernel/tools/script/docker/build_armbian_docker_image.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
# This file is a part of the Rebuild Armbian
99
# https://github.com/ophub/amlogic-s9xxx-armbian
1010
#
11-
# Description: Make a docker version of Armbian.
11+
# Description: Build Armbian docker image.
1212
# Copyright (C) 2021~ https://github.com/ophub/amlogic-s9xxx-armbian
1313
#
1414
#
15-
# Command: ./compile-kernel/tools/script/docker/armbian_docker.sh
15+
# Command: ./compile-kernel/tools/script/docker/build_armbian_docker_image.sh
1616
#
1717
#======================================== Functions list ========================================
1818
#
19-
# error_msg : Output error message
20-
# find_armbian : Find Armbian file (armbian/*rootfs.tar.gz)
21-
# make_dockerimg : Make docker image
19+
# error_msg : Output error message
20+
# find_armbian : Find Armbian file (armbian/*rootfs.tar.gz)
21+
# build_docker : Build Armbian docker image
2222
#
2323
#================================ Set make environment variables ================================
2424
#
@@ -60,9 +60,9 @@ find_armbian() {
6060
[[ -f "${docker_path}/Dockerfile" ]] || error_msg "Missing Dockerfile."
6161
}
6262

63-
make_dockerimg() {
63+
build_docker() {
6464
cd ${current_path}
65-
echo -e "${STEPS} Start making docker image..."
65+
echo -e "${STEPS} Start building Armbian docker image..."
6666

6767
# Move the docker image to the output directory
6868
rm -rf ${out_path} && mkdir -p ${out_path}
@@ -84,11 +84,11 @@ make_dockerimg() {
8484
}
8585

8686
# Show welcome message
87-
echo -e "${STEPS} Welcome to the Docker Image Maker Tool."
87+
echo -e "${STEPS} Welcome to the Armbian Docker Image Builder."
8888
echo -e "${INFO} Make path: [ ${PWD} ]"
8989
#
9090
find_armbian
91-
make_dockerimg
91+
build_docker
9292
#
9393
# All process completed
9494
wait

compile-kernel/tools/script/docker/armbian_rootfs.sh renamed to compile-kernel/tools/script/docker/build_armbian_rootfs_file.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# This file is a part of the Rebuild Armbian
99
# https://github.com/ophub/amlogic-s9xxx-armbian
1010
#
11-
# Description: Redo the Armbian rootfs file.
11+
# Description: Build Armbian rootfs file.
1212
# Copyright (C) 2021- https://github.com/ophub/amlogic-s9xxx-armbian
1313
#
14-
# Command: ./compile-kernel/tools/script/docker/armbian_rootfs.sh -v <VERSION_CODENAME>
15-
# ./compile-kernel/tools/script/docker/armbian_rootfs.sh -v bookworm
14+
# Command: ./compile-kernel/tools/script/docker/build_armbian_rootfs_file.sh -v <VERSION_CODENAME>
15+
# ./compile-kernel/tools/script/docker/build_armbian_rootfs_file.sh -v bookworm
1616
#
1717
#===================== Set make environment variables =====================
1818
#

0 commit comments

Comments
 (0)