You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,28 @@ For the podman login command use your github username with a personal access tok
108
108
> `WARNING: image platform (linux/amd64/v8) does not match the expected platform (linux/amd64)`
109
109
> It can be safely ignored
110
110
111
+
## Cleanup-Workflow (GHCR)
112
+
113
+
Der Workflow `.github/workflows/cleanup-old-containers.yml` löscht alte Container-Images (z. B. `sap-ee:dev*`) aus dem GitHub Container Registry der Organisation. Mit dem temporären `GITHUB_TOKEN` tritt der Fehler „missing field `id`“ auf; es wird ein **klassischer Personal Access Token (PAT)** benötigt.
114
+
115
+
### Token anlegen (einmalig)
116
+
117
+
1.**PAT erstellen** (als Benutzer mit Schreibrechten auf die Packages der Organisation):
- Scopes: **`read:packages`** und **`delete:packages`** anhaken.
120
+
- Unter „Organization access“ die gewünschte Organisation (z. B. `sap-linuxlab`) auf **Grant** setzen, damit der Token auf die Org-Packages zugreifen darf.
121
+
- Token erzeugen und den Wert sicher kopieren (nur einmal sichtbar).
122
+
123
+
2.**Secret im Repository oder in der Organisation ablegen:**
124
+
-**Variante A – nur dieses Repo:** Repository → **Settings** → **Secrets and variables** → **Actions** → **New repository secret**. Name: `GHCR_CLEANUP_TOKEN`, Value: der PAT.
125
+
-**Variante B – mehrere Repos:** Organisation → **Settings** → **Secrets and variables** → **Actions** → **New organization secret**. Name: `GHCR_CLEANUP_TOKEN`, Value: der PAT. Zugriff auf „Repository access“ beschränken (z. B. nur dieses Repo), wenn gewünscht.
126
+
127
+
Der Workflow nutzt `account: ${{ github.repository_owner }}`, also den Organisationsnamen – bei Repos unter einer Organisation ist keine weitere Anpassung nötig.
128
+
129
+
### Alternative Action
130
+
131
+
Die offizielle Action `actions/delete-package-versions` funktioniert mit `GITHUB_TOKEN`, unterstützt für Container-Packages aber **keine Tag-Muster** (z. B. `dev*`); gefiltert wird nach API-Versionsnamen (Digest), nicht nach Tags. Für „nur `dev*`-Tags bereinigen, 5 behalten, älter als 6 Wochen löschen“ ist `snok/container-retention-policy` mit PAT die passende Wahl.
132
+
111
133
# Changes for building supported EE for RHAAP
112
134
113
135
If you want to add supported Automation Hub content, get your Automation Hub token from [here](https://console.redhat.com/ansible/automation-hub/token) and export it in the environment variable `ANSIBLE_GALAXY_SERVER_RH_CERTIFIED_REPO_TOKEN`, login to `registry.redhat.io` with your RedHat credentials and run the following commands:
0 commit comments