Validate github_repos.json
in Continuous Integration
#18
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: 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 |