-
Notifications
You must be signed in to change notification settings - Fork 20
34 lines (32 loc) · 995 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build and test container image
on: [push, pull_request]
jobs:
validate-config:
runs-on: ubunt-latest
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Validate configuration file github_repos.json
run: python validate_github_repos.py
build-container:
runs-on: ubuntu-latest
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Find container metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: digital-sustainability/oss-github-benchmark
- name: Build container image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
layers: false
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
containerfiles: Dockerfile