-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: gate stable and add promotion action
- Loading branch information
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Promote Edge builds to Stable | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-promote | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
promote: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image_name: | ||
- bazzite | ||
- bazzite-nvidia | ||
- bazzite-nvidia-open | ||
- bazzite-gnome | ||
- bazzite-gnome-nvidia | ||
- bazzite-gnome-nvidia-open | ||
- bazzite-deck | ||
- bazzite-deck-gnome | ||
- bazzite-ally | ||
- bazzite-ally-gnome | ||
- bazzite-asus | ||
- bazzite-gnome-asus | ||
- bazzite-asus-nvidia | ||
- bazzite-gnome-asus-nvidia | ||
- bazzite-asus-nvidia-open | ||
- bazzite-gnome-asus-nvidia-open | ||
major_version: [40] | ||
steps: | ||
|
||
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR. | ||
# https://github.com/macbre/push-to-ghcr/issues/12 | ||
- name: Lowercase Registry | ||
id: registry_case | ||
uses: ASzc/change-string-case-action@v6 | ||
with: | ||
string: ${{ env.IMAGE_REGISTRY }} | ||
|
||
- name: Pull Image (Edge tag) | ||
uses: Wandalen/[email protected] | ||
id: pull | ||
with: | ||
attempt_limit: 3 | ||
attempt_delay: 15000 | ||
commands: | | ||
sudo podman pull ${{ steps.registry_case.outputs.lowercase }}/${{ matrix.image_name }}:edge | ||
- name: Push To GHCR | ||
uses: Wandalen/[email protected] | ||
id: push | ||
env: | ||
REGISTRY_USER: ${{ github.actor }} | ||
REGISTRY_PASSWORD: ${{ github.token }} | ||
with: | ||
action: redhat-actions/push-to-registry@v2 | ||
attempt_limit: 3 | ||
attempt_delay: 15000 | ||
with: | | ||
image: ${{ matrix.image_name }} | ||
tags: stable | ||
registry: ${{ steps.registry_case.outputs.lowercase }} | ||
username: ${{ env.REGISTRY_USER }} | ||
password: ${{ env.REGISTRY_PASSWORD }} |