From a303b454a07c996e07d304f4f3c2872f4575f7da Mon Sep 17 00:00:00 2001 From: ER Date: Sun, 26 Feb 2023 13:46:49 +0200 Subject: [PATCH] feat: enable manually starting build --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cc0d85bbb..a0a62dde5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,19 +4,21 @@ on: branches: - main paths-ignore: - - '**.md' - - '**.txt' + - "**.md" + - "**.txt" schedule: - - cron: '20 20 * * *' # 8:20pm everyday + - cron: "20 20 * * *" # 8:20pm everyday push: branches: - main paths-ignore: - - '**.md' - - '**.txt' + - "**.md" + - "**.txt" + workflow_dispatch: + env: - IMAGE_NAME: base - IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} + IMAGE_NAME: base + IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} jobs: push-ghcr: @@ -34,7 +36,7 @@ jobs: - major_version: 37 is_latest: true is_stable: true - steps: + steps: # Checkout push-to-registry action GitHub repository - name: Checkout Push to Registry action uses: actions/checkout@v3 @@ -60,7 +62,7 @@ jobs: fi fi echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT - + # Build metadata - name: Image Metadata uses: docker/metadata-action@v4 @@ -71,7 +73,7 @@ jobs: labels: | io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/base/main/README.md io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4 - + # Build image using Buildah action - name: Build Image id: build_image