mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
newlines
This commit is contained in:
parent
8382770fbd
commit
34376a485c
1 changed files with 26 additions and 21 deletions
45
README.md
45
README.md
|
|
@ -8,6 +8,7 @@ This action is used to generate an ISO for installing an OSTree stored in a cont
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
This action is designed to be called from a GitHub workflow using the following format
|
This action is designed to be called from a GitHub workflow using the following format
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
uses: jasonn3/build-container-installer@main
|
uses: jasonn3/build-container-installer@main
|
||||||
|
|
@ -103,11 +104,13 @@ See [Customizing](#customizing) for information about customizing the ISO that g
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
Building an ISO to install Fedora 38
|
Building an ISO to install Fedora 38
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=38 IMAGE_NAME=base IMAGE_TAG=38 VARIANT=Server
|
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=38 IMAGE_NAME=base IMAGE_TAG=38 VARIANT=Server
|
||||||
```
|
```
|
||||||
|
|
||||||
Building an ISO to install Fedora 39
|
Building an ISO to install Fedora 39
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=39 IMAGE_NAME=base IMAGE_TAG=39 VARIANT=Server
|
docker run --rm --privileged --volume .:/build-container-installer/build ghcr.io/jasonn3/build-container-installer:latest VERSION=39 IMAGE_NAME=base IMAGE_TAG=39 VARIANT=Server
|
||||||
```
|
```
|
||||||
|
|
@ -121,17 +124,18 @@ The code from VSCode will be available at `/workspaces/build-container-installer
|
||||||
Privileged is required for access to loop devices for lorax.
|
Privileged is required for access to loop devices for lorax.
|
||||||
|
|
||||||
Use existing container image:
|
Use existing container image:
|
||||||
```
|
|
||||||
|
```diff
|
||||||
{
|
{
|
||||||
"name": "Existing Dockerfile",
|
"name": "Existing Image",
|
||||||
// "build": {
|
- "build": {
|
||||||
// "context": "..",
|
- "context": "..",
|
||||||
// "dockerfile": "../Containerfile",
|
- "dockerfile": "../Containerfile",
|
||||||
// "args": {
|
- "args": {
|
||||||
// "version": "39"
|
- "version": "39"
|
||||||
// }
|
- }
|
||||||
// },
|
- },
|
||||||
"image": "ghcr.io/jasonn3/build-container-installer:latest",
|
+ "image": "ghcr.io/jasonn3/build-container-installer:latest",
|
||||||
"overrideCommand": true,
|
"overrideCommand": true,
|
||||||
"shutdownAction": "stopContainer",
|
"shutdownAction": "stopContainer",
|
||||||
"privileged": true
|
"privileged": true
|
||||||
|
|
@ -139,17 +143,18 @@ Use existing container image:
|
||||||
```
|
```
|
||||||
|
|
||||||
Build a new container image:
|
Build a new container image:
|
||||||
```
|
|
||||||
|
```diff
|
||||||
{
|
{
|
||||||
"name": "Existing Dockerfile",
|
"name": "New Image",
|
||||||
"build": {
|
+ "build": {
|
||||||
"context": "..",
|
+ "context": "..",
|
||||||
"dockerfile": "../Containerfile",
|
+ "dockerfile": "../Containerfile",
|
||||||
"args": {
|
+ "args": {
|
||||||
"version": "39"
|
+ "version": "39"
|
||||||
}
|
+ }
|
||||||
},
|
+ },
|
||||||
//"image": "ghcr.io/jasonn3/build-container-installer:latest",
|
- "image": "ghcr.io/jasonn3/build-container-installer:latest",
|
||||||
"overrideCommand": true,
|
"overrideCommand": true,
|
||||||
"shutdownAction": "stopContainer",
|
"shutdownAction": "stopContainer",
|
||||||
"privileged": true
|
"privileged": true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue