feat: support for similar function #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Container Guts | |
on: | |
pull_request: [] | |
jobs: | |
generate-recipe: | |
runs-on: ubuntu-latest | |
name: ${{ inputs.docker_uri }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Create conda environment | |
run: conda create --quiet -c conda-forge --name guts | |
- uses: actions/checkout@v3 | |
- name: Install Guts | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate guts | |
pip install -e . | |
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH} | |
- name: Test Basic Guts | |
uses: ./action/manifest | |
with: | |
image: centos | |
- name: Filesystem Include | |
uses: ./action/manifest | |
with: | |
image: centos | |
include: fs | |
generate-recipes: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: ["ubuntu", "centos", "rockylinux:9.0", "alpine", "busybox"] | |
name: Generate Matrix | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Create conda environment | |
run: conda create --quiet -c conda-forge --name guts | |
- uses: actions/checkout@v3 | |
- name: Install Guts | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate guts | |
pip install -e . | |
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH} | |
- name: Guts for ${{ matrix.image }} | |
uses: ./action/manifest | |
with: | |
image: ${{ matrix.image }} | |
outfile: ${{ matrix.image }}.json | |
- name: View Output | |
run: cat ${{ matrix.image }}.json | |
test-diffs: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: [["vanessa/salad", "vanessa-salad.json"]] | |
name: Generate Matrix | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Create conda environment | |
run: conda create --quiet -c conda-forge --name guts | |
- uses: actions/checkout@v3 | |
- name: Install Guts | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate guts | |
pip install -e . | |
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH} | |
- name: Guts Diff for ${{ matrix.image[0] }} | |
uses: ./action/diff | |
with: | |
image: ${{ matrix.image[0] }} | |
outfile: ${{ matrix.image[1] }} | |
- name: View Output | |
run: cat ${{ matrix.image[1] }} |