Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: gate stable and add promotion action #1742

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ jobs:
BUILD_TAGS+=("stable-${FEDORA_VERSION}") # flip ver to be last

if [ -n "$LATEST" ]; then
BUILD_TAGS+=("latest" "stable")
BUILD_TAGS+=("latest" "edge")
fi
fi

Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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
permissions:
packages: write

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:
- name: Login to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login ghcr.io -u ${{ github.actor }} --password-stdin

# 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: Push Edge to Stable
uses: Wandalen/[email protected]
id: push
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
with:
attempt_limit: 3
attempt_delay: 15000
commands: |
sudo skopeo copy \
${{ steps.registry_case.outputs.lowercase }}/${{ matrix.image_name }}:edge \
${{ steps.registry_case.outputs.lowercase }}/${{ matrix.image_name }}:stable