Skip to content

image_build

image_build #254

Workflow file for this run

name: image_build
on:
workflow_dispatch:
schedule:
- cron: '30 2 * * 6'
jobs:
prepare_release:
runs-on: ubuntu-20.04
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%dT%Hh')" >> $GITHUB_OUTPUT
-
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
-
id: release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly-release-${{ steps.date.outputs.date }}
release_name: nightly release ${{ steps.date.outputs.date }}
draft: false
prerelease: false
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
release_id: ${{ steps.release.outputs.id }}
release:
runs-on: ubuntu-20.04
needs: prepare_release
strategy:
matrix:
DEVICE: [pinephone, pinetab, pinephonepro, pinetab2]
EDITION: [nemomobile]
BRANCH: [unstable]
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%dT%Hh')" >> $GITHUB_OUTPUT
-
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
-
id: image-build
uses: manjaro-arm/rootfs@master
with:
arm-profiles-repo: https://github.com/manjaro-pinephone/arm-profiles
device: ${{ matrix.device }}
edition: ${{ matrix.edition }}
branch: ${{ matrix.branch }}
version: nightly-release-${{ steps.date.outputs.date }}
#overlay-repo: https://img.nemomobile.net/manjaro/05.2023/stable/aarch64/nemomobile.db
#CI_PUB_KEY: "${{ secrets.CI_PUB_KEY }}"
#CI_GPG_SECRET: "${{ secrets.CI_GPG_SECRET }}"
#CI_GPG_PASSPHRASE: "${{ secrets.CI_GPG_PASSPHRASE }}"
-
id: upload_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_PATH }}
asset_name: ${{ env.FILE_PATH }}
asset_content_type: application/x-iso-image
-
id: upload_sha256
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_SHA256 }}
asset_name: ${{ env.FILE_SHA256 }}
asset_content_type: text/plain
-
id: upload_pkg
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{ env.FILE_PKG }}
asset_name: ${{ env.FILE_PKG }}
asset_content_type: text/plain
-
name: rollback_release
if: failure()
uses: author/action-rollback@stable
with:
release_id: ${{ needs.prepare_release.outputs.release_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}