8000 ci: Set up mono repo CI for various container images (#1) · python/cpython-devcontainers@900d7e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 900d7e0

Browse files
authored
ci: Set up mono repo CI for various container images (#1)
1 parent f64f719 commit 900d7e0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
build_autoconf:
12+
name: Build and test
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
autoconf_version: ["2.69", "2.71", "2.72"]
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: ./autoconf
21+
env:
22+
TAG: autoconf:${{ matrix.autoconf_version }}-${{ github.run_id }}
23+
steps:
24+
- name: Checkout Push to Registry action
25+
uses: actions/check 7276 out@v4
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
- name: Build Dockerfile
29+
uses: docker/build-push-action@v5
30+
with:
31+
context: .
32+
build-args: AUTOCONF_VERSION=${{ matrix.autoconf_version }}
33+
load: true
34+
tags: ${{ env.TAG }}
35+
- name: Test
36+
run: docker run --rm $TAG autoconf --version | grep ${{ matrix.autoconf_version }}

0 commit comments

Comments
 (0)
0