update workflow

This commit is contained in:
Attilio Greco 2022-12-16 12:43:56 +01:00
parent 896cd5bb13
commit e7cc5c89d6
No known key found for this signature in database
GPG Key ID: FC1D47921C8F19CC

View File

@ -10,8 +10,8 @@ jobs:
build_base_image:
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
alpine: ["3.15", "3.16", "3.17"]
# python: ["3.8", "3.9", "3.10", "3.11"]
# alpine: ["3.15", "3.16", "3.17"]
include:
- python: "3.10.6"
alpine: "3.16"
@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v2
- name: Login to ghcr
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
@ -34,18 +34,16 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Web-base Meta
id: meta-web-base
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository_owner }}/web-base
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- id: github_repository_name
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository_owner }}
- name: Build and push
uses: docker/build-push-action@v2
with:
@ -55,7 +53,7 @@ jobs:
context: .
file: ./Docker/Dockerfile.base
push: true
tags: ${{ matrix.python }}-alpine${{ matrix.alpine }}
tags: ghcr.io/${{ steps.github_repository_name.string.outputs.lowercase }}/web-base:${{ matrix.python }}-alpine${{ matrix.alpine }}
# - name: Poetry Meta
# id: meta-web-poetry