Skip to content

Commit

Permalink
T6732: build params added
Browse files Browse the repository at this point in the history
  • Loading branch information
kumvijaya authored Sep 28, 2024
1 parent 414a488 commit 9d79332
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
fi
echo "build_branch=$branch" >> $GITHUB_OUTPUT

build-iso:
build-image:
needs: prepare-inputs
runs-on: ubuntu-latest
container:
Expand All @@ -89,6 +89,20 @@ jobs:
repository: vyos/vyos-build # Use public repo
ref: ${{ env.BUILD_BRANCH }}

- name: Show data dir
run: |
set -eux
ls -lt data/build-flavors
# - name: Checkout remote build repo
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# fetch-tags: true
# ref: ${{ env.BUILD_BRANCH }}
# repository: 'VyOS-Networks/vyos-build'
# path: remote-build

- name: Mark directory as safe
run: |
set -eux
Expand All @@ -105,7 +119,7 @@ jobs:
wget ${{ env.VYOS_MIRROR_APT_KEY }}
mv vyos_dev_public.key ${{ env.LOCAL_GPG_KEY_PATH }}
- name: Build ISO
- name: Build
run: |
set -eux
git remote -v
Expand All @@ -118,18 +132,18 @@ jobs:
${{ env.RELEASE_FLAVOR }}
ls -la build/
- name: "Building: copy a ${{ env.RELEASE_FLAVOR }} ISO image"
if: ${{ !inputs.FAKE_BUILDING_PROCESS }}
id: copy_iso
run: |
set -eux
cp ./build/live-image-${{ inputs.arch }}.hybrid.iso ./vyos-$BUILD_VERSION-${{ inputs.arch }}.iso
# - name: "Building: copy image"
# if: ${{ !inputs.FAKE_BUILDING_PROCESS }}
# id: copy_iso
# run: |
# set -eux
# cp ./build/live-image-${{ inputs.arch }}.hybrid.iso ./vyos-$BUILD_VERSION-${{ inputs.arch }}.iso

- name: "Uploading artifacts: ISO image to GitHub"
id: upload_iso_artifact
uses: actions/upload-artifact@v4
with:
name: vyos-${{ env.BUILD_VERSION }}-${{ inputs.arch }}.iso
path: ./vyos-${{ env.BUILD_VERSION }}-${{ inputs.arch }}.iso
retention-days: 10
if-no-files-found: error
# - name: "Uploading artifacts: ISO image to GitHub"
# id: upload_iso_artifact
# uses: actions/upload-artifact@v4
# with:
# name: vyos-${{ env.BUILD_VERSION }}-${{ inputs.arch }}.iso
# path: ./vyos-${{ env.BUILD_VERSION }}-${{ inputs.arch }}.iso
# retention-days: 10
# if-no-files-found: error

0 comments on commit 9d79332

Please sign in to comment.