diff --git a/.github/workflows/gen-images.yml b/.github/workflows/gen-images.yml index d64a02140e..63e07760ad 100644 --- a/.github/workflows/gen-images.yml +++ b/.github/workflows/gen-images.yml @@ -7,11 +7,6 @@ on: description: "Override datecode for images" required: false type: string - mirror: - description: "Mirror to use" - default: "https://repo-ci.voidlinux.org/current" - required: false - type: string live_iso_flag: description: "Build live ISOs" default: true @@ -73,6 +68,7 @@ jobs: outputs: datecode: ${{ steps.prep.outputs.datecode }} revision: ${{ steps.prep.outputs.revision }} + mirror: ${{ steps.prep.outputs.mirror }} steps: - name: Prepare Environment @@ -84,6 +80,7 @@ jobs: echo "datecode=${{ inputs.datecode }}" >> $GITHUB_OUTPUT fi echo "revision=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT + echo "mirror=https://repo-ci.voidlinux.org/current" >> $GITHUB_OUTPUT build-live-isos: name: Build Live ISOs @@ -106,7 +103,8 @@ jobs: run: | # Switch to mirror mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ - sed -i 's|https://repo-default.voidlinux.org/current|'"${{ inputs.mirror }}"'|g' /etc/xbps.d/*-repository-*.conf + sed -i 's|https://repo-default.voidlinux.org/current|'"${{ needs.prepare.outputs.mirror }}"'|g' \ + /etc/xbps.d/*-repository-*.conf # Sync and upgrade once, assume error comes from xbps update xbps-install -Syu || xbps-install -yu xbps # Upgrade again (in case there was a xbps update) @@ -119,7 +117,7 @@ jobs: - name: Build live ISOs run: | make live-iso-all-print live-iso-all \ - SUDO= REPOSITORY="${{ inputs.mirror }}" \ + SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \ DATECODE="${{ needs.prepare.outputs.datecode }}" \ LIVE_ARCHS="${{ inputs.live_archs }}" LIVE_FLAVORS="${{ inputs.live_flavors }}" @@ -155,7 +153,8 @@ jobs: run: | # Switch to mirror mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ - sed -i 's|https://repo-default.voidlinux.org/current|'"${{ inputs.mirror }}"'|g' /etc/xbps.d/*-repository-*.conf + sed -i 's|https://repo-default.voidlinux.org/current|'"${{ needs.prepare.outputs.mirror }}"'|g' \ + /etc/xbps.d/*-repository-*.conf # Sync and upgrade once, assume error comes from xbps update xbps-install -Syu || xbps-install -yu xbps # Upgrade again (in case there was a xbps update) @@ -168,7 +167,7 @@ jobs: - name: Build ROOTFSes run: | make rootfs-all-print rootfs-all \ - SUDO= REPOSITORY="${{ inputs.mirror }}" \ + SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \ DATECODE="${{ needs.prepare.outputs.datecode }}" \ ARCHS="${{ inputs.rootfs }}" @@ -204,7 +203,8 @@ jobs: run: | # Switch to mirror mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ - sed -i 's|https://repo-default.voidlinux.org/current|'"${{ inputs.mirror }}"'|g' /etc/xbps.d/*-repository-*.conf + sed -i 's|https://repo-default.voidlinux.org/current|'"${{ needs.prepare.outputs.mirror }}"'|g' \ + /etc/xbps.d/*-repository-*.conf # Sync and upgrade once, assume error comes from xbps update xbps-install -Syu || xbps-install -yu xbps # Upgrade again (in case there was a xbps update) @@ -217,7 +217,7 @@ jobs: - name: Build PLATFORMFSes run: | make platformfs-all-print platformfs-all \ - SUDO= REPOSITORY="${{ inputs.mirror }}" \ + SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \ DATECODE="${{ needs.prepare.outputs.datecode }}" \ PLATFORMS="${{ inputs.platformfs }}" @@ -254,7 +254,8 @@ jobs: run: | # Switch to mirror mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ - sed -i 's|https://repo-default.voidlinux.org/current|'"${{ inputs.mirror }}"'|g' /etc/xbps.d/*-repository-*.conf + sed -i 's|https://repo-default.voidlinux.org/current|'"${{ needs.prepare.outputs.mirror }}"'|g' \ + /etc/xbps.d/*-repository-*.conf # Sync and upgrade once, assume error comes from xbps update xbps-install -Syu || xbps-install -yu xbps # Upgrade again (in case there was a xbps update) @@ -267,7 +268,7 @@ jobs: - name: Build SBC Images run: | make images-all-sbc-print images-all-sbc \ - SUDO= REPOSITORY="${{ inputs.mirror }}" \ + SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \ DATECODE="${{ needs.prepare.outputs.datecode }}" \ SBC_IMGS="${{ inputs.sbc_imgs }}" @@ -306,7 +307,8 @@ jobs: run: | # Switch to mirror mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ - sed -i 's|https://repo-default.voidlinux.org/current|'"${{ inputs.mirror }}"'|g' /etc/xbps.d/*-repository-*.conf + sed -i 's|https://repo-default.voidlinux.org/current|'"${{ needs.prepare.outputs.mirror }}"'|g' \ + /etc/xbps.d/*-repository-*.conf # Sync and upgrade once, assume error comes from xbps update xbps-install -Syu || xbps-install -yu xbps # Upgrade again (in case there was a xbps update)