Skip to content

Commit

Permalink
Rename profile to image
Browse files Browse the repository at this point in the history
  • Loading branch information
sinegar committed Dec 31, 2023
1 parent 1e7a789 commit d0ce2c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- uses: izer-xyz/openwrt-imagebuilder-action@main
with:
profile: armvirt-32
image: armvirt-32
openwrt-version: 22.03.5
packages: >-
-firewall4 -ca-bundle -dnsmasq -dropbear
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ See [action.yml](action.yml) from more details.

Parameters

* `profile`: bcm27xx-bcm2711
* `image`: bcm27xx-bcm2711
* `openwrt-version`: 22.03.5
* `packages`: -ppp
* `files`: test/files
Expand All @@ -31,7 +31,7 @@ An example workflow creating a very basic (packages removed; [custom files](test
steps:
- uses: izer-xyz/openwrt-imagebuilder-action@v1
with:
profile: bcm27xx-bcm2711
image: bcm27xx-bcm2711
openwrt-version: 22.03.5
packages: -ppp
```
Expand All @@ -42,19 +42,19 @@ steps:
steps:
- uses: izer-xyz/openwrt-imagebuilder-action@v1
with:
profile: bcm27xx-bcm2711
image: bcm27xx-bcm2711
openwrt-version: 22.03.5
files: test/files
```
# FAQ
### How to find `profile` and `openwrt-version`
### How to find `image` and `openwrt-version`

The Docker Hub [Imagebuilder tags](https://hub.docker.com/r/openwrtorg/imagebuilder/tags) are formatted `${profile}-${openwrt-version}`. E.g.
The Docker Hub [Imagebuilder tags](https://hub.docker.com/r/openwrtorg/imagebuilder/tags) are formatted `${image}-${openwrt-version}`. E.g.

* [*bcm27xx-bcm2711*-**22.03.5**](https://hub.docker.com/layers/openwrtorg/imagebuilder/bcm27xx-bcm2711-22.03.2/)
* `profile`: *bcm27xx-bcm2711*
* `image`: *bcm27xx-bcm2711*
* `openwrt-version`: **22.03.5**

## Additional Documentation
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'OpenWrt ImageBuilder'
description: 'Build OpenWrt custom images using ImageBuilder - https://openwrt.org/docs/guide-user/additional-software/imagebuilder '
inputs:
profile:
description: 'Specifies the target image to build - PROFILE'
image:
description: 'Specifies the imagebuilder tag'
required: true
default: 'bcm27xx-bcm2711'
openwrt-version:
Expand Down Expand Up @@ -49,8 +49,8 @@ runs:
-e FILES="files" \
-e DEBUG="${{ inputs.debug }}" \
-e OPENWRT_VERSION="${{ inputs.openwrt-version }}" \
-e OPENWRT_PROFILE="${{ inputs.profile }}" \
openwrt/imagebuilder:${{ inputs.profile }}-${{ inputs.openwrt-version }} \
-e OPENWRT_IMAGE="${{ inputs.image }}" \
openwrt/imagebuilder:${{ inputs.image }}-${{ inputs.openwrt-version }} \
/builder/github_make_image.sh
shell: bash

0 comments on commit d0ce2c7

Please sign in to comment.