summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/vyos-rolling-nightly-build.yml44
-rw-r--r--latest_build.txt2
2 files changed, 40 insertions, 6 deletions
diff --git a/.github/workflows/vyos-rolling-nightly-build.yml b/.github/workflows/vyos-rolling-nightly-build.yml
index 5f3cf14..c90008f 100644
--- a/.github/workflows/vyos-rolling-nightly-build.yml
+++ b/.github/workflows/vyos-rolling-nightly-build.yml
@@ -6,10 +6,6 @@ on:
workflow_dispatch:
-env:
- minisign_key: ${{ secrets.minisign_key }}
- minisign_password: ${{ secrets.minisign_password }}
-
jobs:
build-iso:
runs-on: ubuntu-latest
@@ -56,6 +52,31 @@ jobs:
shasum minisign.key
echo $minisign_password | $GITHUB_WORKSPACE/bin/minisign -s minisign.key -Sm ./vyos-$VYOS_VERSION-amd64.iso
$GITHUB_WORKSPACE/bin/minisign -Vm ./vyos-$VYOS_VERSION-amd64.iso -x ./vyos-$VYOS_VERSION-amd64.iso.minisig -p $GITHUB_WORKSPACE/minisign.pub
+ env:
+ 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
@@ -88,4 +109,17 @@ jobs:
keep_latest: 30
delete_tags: true
env:
- GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} \ No newline at end of file
+ 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
diff --git a/latest_build.txt b/latest_build.txt
index b8693a9..b0e40fc 100644
--- a/latest_build.txt
+++ b/latest_build.txt
@@ -1 +1 @@
-202308160020
+202308171729