Skip to content

build

build #649

Workflow file for this run

name: build
on:
schedule:
- cron: "0 8 * * 2,4,6"
push:
branches:
- '**'
pull_request:
branches:
- main
jobs:
build-images:
strategy:
matrix:
version: ['3.8', '3.9', '3.10', '3.11', '3.12']
name: Build Python Docker images
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: build progress1bar ${{ matrix.version }} image
run:
docker image build --build-arg PYTHON_VERSION=${{ matrix.version }} -t progress1bar:${{ matrix.version }} .
- name: save progress1bar ${{ matrix.version }} image
if: ${{ matrix.version == '3.9' }}
run: |
mkdir -p images
docker save --output images/progress1bar-${{ matrix.version }}.tar progress1bar:${{ matrix.version }}
- name: upload progress1bar ${{ matrix.version }} image artifact
if: ${{ matrix.version == '3.9' }}
uses: actions/upload-artifact@v2
with:
name: image
path: images/progress1bar-${{ matrix.version }}.tar