diff options
Diffstat (limited to '.github/workflows/vyos-rolling-nightly-build.yml')
-rw-r--r-- | .github/workflows/vyos-rolling-nightly-build.yml | 157 |
1 files changed, 80 insertions, 77 deletions
diff --git a/.github/workflows/vyos-rolling-nightly-build.yml b/.github/workflows/vyos-rolling-nightly-build.yml index f9f786a..1858d53 100644 --- a/.github/workflows/vyos-rolling-nightly-build.yml +++ b/.github/workflows/vyos-rolling-nightly-build.yml @@ -29,21 +29,24 @@ jobs: 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 + # - name: Git clone vyos-build + # run: git clone -b current --single-branch https://github.com/vyos/vyos-build - - name: Build ISO - run: | - docker run --rm --privileged -v ./vyos-build/:/vyos -w /vyos vyos/vyos-build:current sudo --preserve-env ./build-vyos-image --architecture amd64 --build-by "autobuild@vyos.net" --vyos-mirror https://rolling-packages.vyos.net/current/ --debian-mirror http://deb.debian.org/debian/ --build-type release --version "${VYOS_VERSION}" iso - - # - name: Debug + # - name: Build ISO # run: | + # docker run --rm --privileged -v ./vyos-build/:/vyos -w /vyos vyos/vyos-build:current sudo --preserve-env ./build-vyos-image --architecture amd64 --build-by "autobuild@vyos.net" --vyos-mirror https://rolling-packages.vyos.net/current/ --debian-mirror http://deb.debian.org/debian/ --build-type release --version "${VYOS_VERSION}" iso + ###### + # - run: | # mkdir -p ./vyos-build/build/ # echo "TEST" > ./vyos-build/build/live-image-amd64.hybrid.iso + ###### + # - name: Copy ISO + # run: | + # cp ./vyos-build/build/live-image-amd64.hybrid.iso ./vyos-$VYOS_VERSION-amd64.iso + + - run: | + wget https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.4-rolling-202308310021/vyos-1.4-rolling-202308310021-amd64.iso -O ./vyos-$VYOS_VERSION-amd64.iso - - name: Copy ISO - run: | - cp ./vyos-build/build/live-image-amd64.hybrid.iso ./vyos-$VYOS_VERSION-amd64.iso - name: Check ISO uses: cross-the-world/ssh-scp-ssh-pipelines@latest @@ -77,70 +80,70 @@ jobs: minisign_key: ${{ secrets.minisign_key }} minisign_password: ${{ secrets.minisign_password }} - - name: Upload ISO to S3 Glacier - uses: keithweaver/aws-s3-github-action@v1.0.0 - with: - command: cp - source: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso - destination: s3://${{ secrets.aws_s3_bucket }}/vyos-${{ env.VYOS_VERSION }}-amd64.iso - aws_access_key_id: ${{ secrets.aws_access_key_id }} - aws_secret_access_key: ${{ secrets.aws_secret_access_key }} - aws_region: us-east-1 - flags: --storage-class GLACIER - - - name: Upload ISO's signature to S3 Glacier - uses: keithweaver/aws-s3-github-action@v1.0.0 - with: - command: cp - source: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig - destination: s3://${{ secrets.aws_s3_bucket }}/vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig - aws_access_key_id: ${{ secrets.aws_access_key_id }} - aws_secret_access_key: ${{ secrets.aws_secret_access_key }} - aws_region: us-east-1 - flags: --storage-class GLACIER - - - name: Upload ISO artifact - uses: actions/upload-artifact@v3 - with: - name: vyos-${{ env.VYOS_VERSION }}-amd64.iso - path: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso - retention-days: 30 - if-no-files-found: error - - - name: Upload ISO's Minisign artifact - uses: actions/upload-artifact@v3 - with: - name: vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig - path: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig - retention-days: 30 - if-no-files-found: error - - - name: Publish release - uses: softprops/action-gh-release@v1 - 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: Send Slack notification on fail - if: failure() - id: slack - uses: slackapi/slack-github-action@v1.24.0 - with: - payload: | - { - "text": "*vyos-rolling-nightly-builds*\nGitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + # - name: Upload ISO to S3 Glacier + # uses: keithweaver/aws-s3-github-action@v1.0.0 + # with: + # command: cp + # source: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso + # destination: s3://${{ secrets.aws_s3_bucket }}/vyos-${{ env.VYOS_VERSION }}-amd64.iso + # aws_access_key_id: ${{ secrets.aws_access_key_id }} + # aws_secret_access_key: ${{ secrets.aws_secret_access_key }} + # aws_region: us-east-1 + # flags: --storage-class GLACIER + + # - name: Upload ISO's signature to S3 Glacier + # uses: keithweaver/aws-s3-github-action@v1.0.0 + # with: + # command: cp + # source: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig + # destination: s3://${{ secrets.aws_s3_bucket }}/vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig + # aws_access_key_id: ${{ secrets.aws_access_key_id }} + # aws_secret_access_key: ${{ secrets.aws_secret_access_key }} + # aws_region: us-east-1 + # flags: --storage-class GLACIER + + # - name: Upload ISO artifact + # uses: actions/upload-artifact@v3 + # with: + # name: vyos-${{ env.VYOS_VERSION }}-amd64.iso + # path: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso + # retention-days: 30 + # if-no-files-found: error + + # - name: Upload ISO's Minisign artifact + # uses: actions/upload-artifact@v3 + # with: + # name: vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig + # path: ./vyos-${{ env.VYOS_VERSION }}-amd64.iso.minisig + # retention-days: 30 + # if-no-files-found: error + + # - name: Publish release + # uses: softprops/action-gh-release@v1 + # 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: Send Slack notification on fail + # if: failure() + # id: slack + # uses: slackapi/slack-github-action@v1.24.0 + # with: + # payload: | + # { + # "text": "*vyos-rolling-nightly-builds*\nGitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + # } + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + # SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |