Skip to content

Commit

Permalink
Add CI that tests building the docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Nov 7, 2024
1 parent 602f83d commit a4e673a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Build containers

on:
push:
pull_request:

jobs:
get_json_versions:
runs-on: ubuntu-latest
steps:
# Fetch versions to work for images
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- id: set-versions
run: echo "::set-output name=versions::$(./get_json_versions.py)"

outputs:
versions: ${{ steps.set-versions.outputs.versions }}

build_images:
runs-on: ubuntu-latest
needs: publish_base
strategy:
fail-fast: false
matrix:
ps-version: ${{ fromJson(needs.get_json_versions.outputs.versions) }}
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build --quiet=true images/${version}
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
working-directory: base

- name: Base Images > Docker Build & Push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.changes.outputs.base != 'true' }}
run: ./docker_tags.sh -p
working-directory: base

- name: Base Images > Docker Build & Push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.changes.outputs.base == 'true' }}
run: ./docker_tags.sh -p -f
Expand Down

0 comments on commit a4e673a

Please sign in to comment.