Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-101 authored May 3, 2024
1 parent 2959152 commit 8dc5bee
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
description: 'Branch to build (optional)'
required: false
schedule:
- cron: "0 0 * * 1"
push:
Expand All @@ -17,11 +17,17 @@ jobs:
build_and_push:
name: Build and Push Docker Image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch:
- v1.11.5
- v1.11.6
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch || github.ref_name }}
ref: ${{ github.event.inputs.branch || matrix.branch }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -40,4 +46,4 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/blueprintframework/blueprint:${{ github.event.inputs.branch || github.ref_name }}
tags: ghcr.io/blueprintframework/blueprint:${{ github.event.inputs.branch || matrix.branch }}

0 comments on commit 8dc5bee

Please sign in to comment.