Skip to content

Commit

Permalink
add container build test
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 23, 2024
1 parent 2df4338 commit 6d2e8f8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Container build

on:
push:
branches:
- master
paths:
- 'container-images/**'
- '.github/workflows/container.yml'
pull_request:
paths:
- 'container-images/**'
- '.github/workflows/container.yml'

permissions:
contents: read

concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
container:
name: ${{ matrix.container }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- candlepin
- foreman
- foreman-proxy
steps:
- uses: actions/checkout@v4
- name: Build ${{ matrix.container }} container
run: make -C container-images/${{ matrix.container }} build VERSION=ci
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:
- master
paths-ignore:
- 'container-images/**'
- '.github/workflows/container.yml'
pull_request:
paths-ignore:
- 'container-images/**'
- '.github/workflows/container.yml'


concurrency:
Expand Down

0 comments on commit 6d2e8f8

Please sign in to comment.