mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-03-09 12:09:49 +01:00
FEAT: customize everything
This commit is contained in:
23
.github/workflows/build-disk.yml
vendored
23
.github/workflows/build-disk.yml
vendored
@@ -4,11 +4,6 @@ name: Build disk images
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
upload-to-s3:
|
||||
description: "Upload to S3"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
platform:
|
||||
required: true
|
||||
type: choice
|
||||
@@ -89,7 +84,7 @@ jobs:
|
||||
additional-args: --use-librepo=True
|
||||
|
||||
- name: Upload disk images and Checksum to Job Artifacts
|
||||
if: inputs.upload-to-s3 != true && github.event_name != 'pull_request'
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
path: ${{ steps.build.outputs.output-directory }}
|
||||
@@ -97,19 +92,3 @@ jobs:
|
||||
retention-days: 0
|
||||
compression-level: 0
|
||||
overwrite: true
|
||||
|
||||
- name: Upload to S3
|
||||
if: inputs.upload-to-s3 == true && github.event_name != 'pull_request'
|
||||
shell: bash
|
||||
env:
|
||||
RCLONE_CONFIG_S3_TYPE: s3
|
||||
RCLONE_CONFIG_S3_PROVIDER: ${{ secrets.S3_PROVIDER }}
|
||||
RCLONE_CONFIG_S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
||||
RCLONE_CONFIG_S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
||||
RCLONE_CONFIG_S3_REGION: ${{ secrets.S3_REGION }}
|
||||
RCLONE_CONFIG_S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||
SOURCE_DIR: ${{ steps.build.outputs.output-directory }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y rclone
|
||||
rclone copy $SOURCE_DIR S3:${{ secrets.S3_BUCKET_NAME }}
|
||||
Reference in New Issue
Block a user