Skip to content

Commit

Permalink
Merge branch 'add-py37-nw-image'
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Nov 23, 2023
2 parents 352447f + c3ef69d commit 4607add
Showing 1 changed file with 3 additions and 69 deletions.
72 changes: 3 additions & 69 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,79 +7,13 @@ on:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# - version: "2.7.18"
# dist: stretch
# python: python
# - version: "3.6.14"
# dist: stretch
# python: python
# - version: "3.7.11"
# dist: stretch
# python: python
- version: "3.8.11"
dist: buster
python: python
- version: "3.9.6"
dist: buster
python: python
- version: "2.7"
version_suffix: "-7.3.5"
dist: buster
python: pypy
- version: "3.6"
version_suffix: "-7.3.3"
dist: buster
python: pypy

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- name: construct image metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
praekeltfoundation/${{matrix.python}}-base
ghcr.io/praekeltfoundation/${{matrix.python}}-base
tags: |
type=pep440,pattern={{version}},value=${{matrix.version}}
type=pep440,pattern={{major}}.{{minor}},value=${{matrix.version}}
type=pep440,pattern={{major}},value=${{matrix.version}}
type=raw,value=${{matrix.dist}}
type=pep440,pattern={{version}}-${{matrix.dist}},value=${{matrix.version}}
type=pep440,pattern={{major}}.{{minor}}-${{matrix.dist}},value=${{matrix.version}}
type=pep440,pattern={{major}}-${{matrix.dist}},value=${{matrix.version}}
- name: login to ghcr
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: login to docker hub
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{github.event_name != 'pull_request'}}
tags: ${{steps.meta.outputs.tags}}
build-args: |
FROM_IMAGE=${{matrix.python}}:${{matrix.version}}${{matrix.version_suffix}}-slim-${{matrix.dist}}
build-no-wheelhouse:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dist: [buster, bullseye]
version: ["3.11.3", "3.10.11", "3.9.16", "3.8.16"]
dist: [bullseye]
version: ["3.11.6", "3.10.13", "3.9.18", "3.8.18", "3.7.17"]
python: [python]
include:
- version: "2.7"
Expand Down

0 comments on commit 4607add

Please sign in to comment.