File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed
Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Build containers
3+
4+ on :
5+ push :
6+ pull_request :
7+
8+ jobs :
9+ get_json_versions :
10+ runs-on : ubuntu-latest
11+ steps :
12+ # Fetch versions to work for images
13+ - uses : actions/checkout@v2
14+ - name : Set up Python 3.8
15+ uses : actions/setup-python@v2
16+ with :
17+ python-version : 3.8
18+ - id : set-versions
19+ run : echo "::set-output name=versions::$(./get_json_versions.py)"
20+
21+ outputs :
22+ versions : ${{ steps.set-versions.outputs.versions }}
23+
24+ build_images :
25+ runs-on : ubuntu-latest
26+ needs : publish_base
27+ strategy :
28+ fail-fast : false
29+ matrix :
30+ ps-version : ${{ fromJson(needs.get_json_versions.outputs.versions) }}
31+ steps :
32+ - uses : actions/checkout@v2
33+ - name : Build Docker image
34+ run : docker build --quiet=true images/${version}
Original file line number Diff line number Diff line change 4444 if : ${{ github.event_name == 'pull_request' }}
4545 working-directory : base
4646
47- - name : Base Images > Docker Build & Push
48- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.changes.outputs.base != 'true' }}
49- run : ./docker_tags.sh -p
50- working-directory : base
51-
5247 - name : Base Images > Docker Build & Push
5348 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.changes.outputs.base == 'true' }}
5449 run : ./docker_tags.sh -p -f
You can’t perform that action at this time.
0 commit comments