Added gitea building 1.32.1
Some checks failed
Build Docker Image / build-and-deploy-image (push) Failing after 3m40s

This commit is contained in:
2024-07-08 12:41:33 +03:00
parent 48d7917059
commit ae01f6599d
4 changed files with 160 additions and 2 deletions

View File

@@ -0,0 +1,69 @@
name: Build Docker Image
on:
push:
branches:
- main
schedule:
- cron: '@monthly'
jobs:
build-and-deploy-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: technocloud-public
RUNNER_TOOL_CACHE: /toolcache
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 Python 3.10
uses: docker/build-push-action@v5
with:
context: pkg/docker
file: pkg/docker/Dockerfile.python3.10
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.10
- name: Build and push Python 3.11
uses: docker/build-push-action@v5
with:
context: pkg/docker
file: pkg/docker/Dockerfile.python3.11
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.11
- name: Build and push Python 3.12
uses: docker/build-push-action@v5
with:
context: pkg/docker
file: pkg/docker/Dockerfile.python3.12
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.12