update workflow
This commit is contained in:
parent
896cd5bb13
commit
e7cc5c89d6
20
.github/workflows/build-image.yml
vendored
20
.github/workflows/build-image.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user