From b0cf11d160ff5e4502c6bc6aeb28f8137e49b7f5 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Thu, 19 Sep 2024 15:02:25 +0530 Subject: [PATCH] feat: swap repository URL on tag Signed-off-by: K.B.Dharun Krishna --- .github/workflows/vib-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/vib-build.yml b/.github/workflows/vib-build.yml index 8906e3d..ff1bead 100644 --- a/.github/workflows/vib-build.yml +++ b/.github/workflows/vib-build.yml @@ -31,6 +31,12 @@ jobs: sudo chmod a+x /debootstrap/debootstrap sudo ln -s /debootstrap/debootstrap -t /usr/local/bin + - name: Replace testing repository with production + if: ${{ github.ref_type == 'tag' }} + run: | + sed 's|http://testing.vanillaos.org|http://repo2.vanillaos.org|g' -i rootfs/build.sh + sed 's|http://testing.vanillaos.org|http://repo2.vanillaos.org|g' -i rootfs/includes.rootfs/etc/apt/sources.list.d/vanilla-base.sources + - name: Rootfs working-directory: rootfs run: |