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:
|
build_base_image:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: ["3.8", "3.9", "3.10", "3.11"]
|
# python: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
alpine: ["3.15", "3.16", "3.17"]
|
# alpine: ["3.15", "3.16", "3.17"]
|
||||||
include:
|
include:
|
||||||
- python: "3.10.6"
|
- python: "3.10.6"
|
||||||
alpine: "3.16"
|
alpine: "3.16"
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Login to ghcr
|
- name: Login to ghcr
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@ -34,18 +34,16 @@ jobs:
|
|||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
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
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@ -55,7 +53,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Docker/Dockerfile.base
|
file: ./Docker/Dockerfile.base
|
||||||
push: true
|
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
|
# - name: Poetry Meta
|
||||||
# id: meta-web-poetry
|
# id: meta-web-poetry
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user