autoconf: Update autoconf image file to use Ubuntu distro (#13) #34
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: ci | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: [main] | |
jobs: | |
build_devcontainer: | |
name: Build (Devcontainer) | |
runs-on: ubuntu-latest | |
env: | |
TAG: cpython-devcontainer:1.0.0-${{ 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: ./devcontainer | |
load: true | |
tags: ${{ env.TAG }} | |
build_autoconf: | |
name: Build and test (Autoconf) | |
strategy: | |
fail-fast: false | |
matrix: | |
autoconf_version: ["2.69", "2.71", "2.72"] | |
runs-on: ubuntu-latest | |
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: ./autoconf | |
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 }} |