Files
nginx-unit/.gitea/workflows/build.yml
Eugene Morozov 35a9ab83c4
All checks were successful
Build Docker Image / Unit with Python ${{ matrix.python-version }} (3.10) (push) Successful in 38m53s
Build Docker Image / Unit with Python ${{ matrix.python-version }} (3.11) (push) Successful in 39m0s
Build Docker Image / Unit with Python ${{ matrix.python-version }} (3.12) (push) Successful in 31m5s
Fixed building #2
2024-07-20 16:45:40 +03:00

60 lines
1.5 KiB
YAML

name: Build Docker Image
on:
push:
branches:
- main
schedule:
- cron: '@monthly'
jobs:
build-and-deploy-image:
runs-on: linux_amd
name: Unit with Python ${{ matrix.python-version }}
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: technocloud-public
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.technocloud.ee
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.python${{ matrix.python-version }}
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}