Skip to content

Commit

Permalink
[build] Attempt to chain ISO installer and docker image CI for main b…
Browse files Browse the repository at this point in the history
…ranch #patch
  • Loading branch information
lts-rad committed Oct 5, 2022
1 parent 70e9fc9 commit a80e80f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
branches: [ main, dev ]
pull_request:
branches: [ main ]
workflow_run:
workflows: ["Bump version"]
types:
- completed
branches: [ main ]

jobs:
build-images:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ubuntu-iso.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Ubuntu ISO Installer

on:
push:
workflow_run:
workflows: ["Docker Image CI"]
types:
- completed
branches: [ main ]
tags:
- 'v*'

jobs:
build_iso:
Expand Down Expand Up @@ -38,12 +39,12 @@ jobs:
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./installer/data/spr.img.xz
asset_name: spr.img.xz
asset_content_type: application/x-xz

0 comments on commit a80e80f

Please sign in to comment.