diff options
author | Andrii Andrieiev <a.andrieiev@sentrium.io> | 2023-12-29 19:01:20 +0200 |
---|---|---|
committer | Andrii Andrieiev <a.andrieiev@sentrium.io> | 2023-12-29 19:01:20 +0200 |
commit | 36228c91321395f03040b6635dc6e78e305b8aea (patch) | |
tree | 0bf16ac23ae719adf74858f6a64d9e205a0dc497 /.github/workflows | |
parent | 049fe76daa23a4018912e32bd65afe7db4395a17 (diff) | |
download | vyos-rolling-nightly-builds-36228c91321395f03040b6635dc6e78e305b8aea.tar.gz vyos-rolling-nightly-builds-36228c91321395f03040b6635dc6e78e305b8aea.zip |
simple build update
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/vyos-rolling-nightly-build.yml | 1 | ||||
-rw-r--r-- | .github/workflows/vyos-rolling-simple-build.yml | 38 |
2 files changed, 8 insertions, 31 deletions
diff --git a/.github/workflows/vyos-rolling-nightly-build.yml b/.github/workflows/vyos-rolling-nightly-build.yml index 56a0700..7c4ac77 100644 --- a/.github/workflows/vyos-rolling-nightly-build.yml +++ b/.github/workflows/vyos-rolling-nightly-build.yml @@ -20,7 +20,6 @@ jobs: - uses: actions/checkout@v3 - - name: Git clone vyos-build run: git clone -b current --single-branch https://github.com/vyos/vyos-build diff --git a/.github/workflows/vyos-rolling-simple-build.yml b/.github/workflows/vyos-rolling-simple-build.yml index 606e976..0fad32c 100644 --- a/.github/workflows/vyos-rolling-simple-build.yml +++ b/.github/workflows/vyos-rolling-simple-build.yml @@ -1,4 +1,4 @@ -name: VyOS rolling simple build +name: Simple build of the ISO artifact on: workflow_dispatch: @@ -6,26 +6,14 @@ on: jobs: build-iso: runs-on: ubuntu-latest - permissions: - contents: write steps: - - name: Set VyOS version id: set_vyos_version run: | - echo "VYOS_VERSION=1.4-rolling-$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV + echo "VYOS_VERSION=1.5-rolling-$(date -u +%Y%m%d%H%M)" >> $GITHUB_ENV - uses: actions/checkout@v3 - - name: Update latest_build.txt - run: echo $(date -u +%Y%m%d%H%M) > $GITHUB_WORKSPACE/latest_build.txt - - - name: Create autocommit and tag - uses: stefanzweifel/git-auto-commit-action@v4 - with: - tagging_message: ${{ env.VYOS_VERSION }} - commit_message: ${{ env.VYOS_VERSION }} - - name: Git clone vyos-build run: git clone -b current --single-branch https://github.com/vyos/vyos-build @@ -37,20 +25,10 @@ jobs: run: | cp ./vyos-build/build/live-image-amd64.hybrid.iso ./vyos-$VYOS_VERSION-amd64.iso - - name: Publish release - uses: softprops/action-gh-release@v1 + - name: Upload ISO artifact + uses: actions/upload-artifact@v3 with: - tag_name: ${{ env.VYOS_VERSION }} - fail_on_unmatched_files: true - files: | - ./vyos-${{ env.VYOS_VERSION }}-amd64.iso - ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig - - - name: Remove old releases - uses: dev-drprasad/delete-older-releases@v0.2.1 - with: - keep_latest: 30 - delete_tags: true - env: - GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - + name: vyos-${{ env.VYOS_VERSION }}-amd64.iso + path: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso + retention-days: 30 + if-no-files-found: error |