From 900d7e090b8f0441d3050ccf4cd04fbd4a42cafb Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Mon, 23 Sep 2024 12:14:25 -0700 Subject: [PATCH] ci: Set up mono repo CI for various container images (#1) --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..276cd51 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: ci + +on: + push: + branches: + - "main" + pull_request: + branches: [main] + +jobs: + build_autoconf: + name: Build and test + strategy: + fail-fast: false + matrix: + autoconf_version: ["2.69", "2.71", "2.72"] + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./autoconf + env: + TAG: autoconf:${{ matrix.autoconf_version }}-${{ github.run_id }} + steps: + - name: Checkout Push to Registry action + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Dockerfile + uses: docker/build-push-action@v5 + with: + context: . + build-args: AUTOCONF_VERSION=${{ matrix.autoconf_version }} + load: true + tags: ${{ env.TAG }} + - name: Test + run: docker run --rm $TAG autoconf --version | grep ${{ matrix.autoconf_version }}