Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
echo "version_path=${VERSION_PATH:-snapshots}" >> "$GITHUB_OUTPUT"
echo "run_setup=${RUN_SETUP:-0}" >> "$GITHUB_OUTPUT"

FILE_HOST=${{ needs.generate_matrix.outputs.file_host }}
FILE_HOST=${{ github.event.inputs.file_host }}
echo "file_host=${FILE_HOST:-mirror-03.infra.openwrt.org}" >> "$GITHUB_OUTPUT"

push-imagebuilder-container:
Expand Down
50 changes: 50 additions & 0 deletions REBUILD_INSTRUCTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Instructions for Rebuilding Missing Containers

This document explains how to rebuild missing containers like the reported `ramips-mt7621-v23.05.6` container.

## The Issue

The container `ghcr.io/openwrt/imagebuilder:ramips-mt7621-v23.05.6` was missing due to a workflow issue that prevented manual container builds from working correctly.

## The Fix

Fixed a circular dependency in `.github/workflows/containers.yml` where the `generate_matrix` job was trying to use its own output for `file_host` instead of the workflow input.

## How to Rebuild a Missing Container

To rebuild the missing `ramips-mt7621-v23.05.6` container:

1. Go to the [Actions tab](https://github.com/openwrt/docker/actions/workflows/containers.yml)
2. Click "Run workflow"
3. Fill in the parameters:
- **ref**: `v23.05.6`
- **target**: `ramips/mt7621`
- **file_host**: (leave empty for default)
- **prefix**: (leave empty for default)
4. Click "Run workflow"

This will build and push the container to `ghcr.io/openwrt/imagebuilder:ramips-mt7621-v23.05.6`.

## General Pattern

For any missing container `TARGET-VERSION`:
- **ref**: The version (e.g., `v23.05.6`, `main`)
- **target**: The target architecture (e.g., `ramips/mt7621`, `x86/64`)

The resulting container will be tagged as:
- `ghcr.io/openwrt/imagebuilder:TARGET-VERSION`
- `ghcr.io/openwrt/imagebuilder:TARGET-REF` (e.g., `ramips-mt7621-v23.05.6`)

## Testing

After the workflow completes successfully, you can test the container:

```bash
podman run -it ghcr.io/openwrt/imagebuilder:ramips-mt7621-v23.05.6
```

Inside the container, run:
```bash
./setup.sh
make image PROFILE=generic
```