Skip to content

Commit

Permalink
add test caller and called workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Jan 30, 2024
1 parent a4d6bc1 commit 73f1d82
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/caller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Generic caller test"
on:
pull_request:

jobs:
call-generic-build:
uses: bioconda/bioconda-containers/.github/workflows/generic_build.yml
with:
image_name: example-image
tags: 'major.minor latest'

40 changes: 40 additions & 0 deletions .github/workflows/generic_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
workflow_call:
inputs:
image_name:
required: true
type: string
image_dir:
required: true
type: string
tags:
required: true
type: string
busybox_version:
required: false
type: string
debian_version:
required: false
type: string
image_prefix:
required: false
type: string

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build
id: build
run: |
set -xeu
image_name='${{ inputs.image_name }}${{ inputs.image_prefix }}'
image_dir='images/${{ inputs.image_name }}'

0 comments on commit 73f1d82

Please sign in to comment.