diff --git a/.github/workflows/caller.yml b/.github/workflows/caller.yml new file mode 100644 index 00000000..c0a09c92 --- /dev/null +++ b/.github/workflows/caller.yml @@ -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' + diff --git a/.github/workflows/generic_build.yml b/.github/workflows/generic_build.yml new file mode 100644 index 00000000..444cff5c --- /dev/null +++ b/.github/workflows/generic_build.yml @@ -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 }}' +