web-baseimage/.gitea/workflows/build-image.yml
Attilio Greco 50177dfe25
Some checks failed
Push web base image / build_base_image (3.18, 3.10) (push) Failing after 12s
t
2025-01-13 15:51:09 +01:00

87 lines
2.5 KiB
YAML

name: Push web base image
on:
push:
branches:
- gitea-test
release:
types: [published, created, edited]
pull_request:
jobs:
build_base_image:
strategy:
matrix:
python: ["3.10"]
alpine: ["3.18"]
# python: ["3.10", "3.11", "3.12", "3.13"]
# alpine: ["3.18", "3.19", "3.20", "3.21"]
# include:
# - python: "3.10.6"
# alpine: "3.16"
exclude:
- python: "3.12"
alpine: "3.18"
- python: "3.13"
alpine: "3.18"
runs-on: ubuntu-latest
steps:
- name: test
run: |
echo ${{ github.actor }}
echo ${{ github.repository_owner }}
pwd=${{ secrets.GITEA_TOKEN }}
echo $pwd
env:
ACTIONS_STEP_DEBUG: true
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
# docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: gitea.k8s.4sigma.top
username: ${{ gitea.repository_owner }}
password: ${{ secrets.GITEA_TOKEN}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# with:
# driver-opts: |
# image=moby/buildkit:v0.10.6
# - id: string
# uses: ASzc/change-string-case-action@v5
# with:
# string: ${{ github.repository_owner }}
#
# - name: Build and push base
# uses: docker/build-push-action@v6
# with:
# build-args: |
# PYTHON_VERSION=${{ matrix.python }}
# ALPINE_VERSION=${{ matrix.alpine }}
# context: .
# file: ./Docker/Dockerfile.base
# platforms: linux/amd64,linux/arm64
# push: true
# tags: ghcr.io/${{ steps.string.outputs.lowercase }}/web-base/python:${{ matrix.python }}-alpine${{ matrix.alpine }}
#
# - name: Build and push Poetry
# uses: docker/build-push-action@v6
# with:
# build-args: |
# PYTHON_VERSION=${{ matrix.python }}
# ALPINE_VERSION=${{ matrix.alpine }}
# context: .
# file: ./Docker/Dockerfile.poetry
# platforms: linux/amd64,linux/arm64
# push: true
# tags: ghcr.io/${{ steps.string.outputs.lowercase }}/web-base/poetry:${{ matrix.python }}-alpine${{ matrix.alpine }}