Skip to content

Commit

Permalink
use matrix strategy to control build versions in action (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA committed Jun 5, 2024
1 parent 5a334cd commit e57ee9e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ersilia-base-image-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
build_version:
description: 'Docker build version (v2 is default; v1 - single stage build and v2 - multi stage build)'
required: false
type: string
default: v2

env:
BUILD_VERSION: ${{ github.event.inputs.build_version }}

jobs:
upload_ersilia_base_to_dockerhub:
strategy:
matrix:
build-version: ["v1", "v2"]
runs-on: ubuntu-latest
steps:
# https://github.com/docker/setup-qemu-action
Expand Down Expand Up @@ -51,7 +45,7 @@ jobs:
- name: Copy Dockerfile to base directory
run: |
cp dockerfiles/model-deploy-${{ env.BUILD_VERSION }}/base/* .
cp dockerfiles/model-deploy-${{ matrix.build-version }}/base/* .
- name: Docker meta
id: docker_meta
Expand Down

0 comments on commit e57ee9e

Please sign in to comment.