Update .gitea/workflows/main.yaml
PHP Image build (Buildah with cache & debug) / Build and Push image with Buildah (cache) (push) Failing after 1m53s

This commit is contained in:
2026-10-27 15:20:14 +00:00
parent 0c2c4830dc
commit bacff2434a
+19 -26
View File
@@ -1,37 +1,30 @@
name: PHP Image build
run-name: ${{ gitea.actor }} is building ansible docker image 🚀
name: PHP Image build (Buildah with cache & debug)
run-name: ${{ gitea.actor }} is building PHP image (cached) 🚀
on: [push]
jobs:
push_to_registry:
name: Build and Push image to registry
name: Build and Push image with Buildah (cache)
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-22.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: actions/docker-login-action@v3
with:
registry: git.unbind.ru
username: anry
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Log in to registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | \
buildah login --username anry --password-stdin git.unbind.ru
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: actions/docker-metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
# with:
# images: git.unbind.ru/${{ gitea.repository }}:${{ gitea.ref_name }}
- name: Build with cache layers
run: |
buildah bud \
--file ./Dockerfile \
--cache \
--no-cache=false \
-t git.unbind.ru/${{ gitea.repository }}:${{ gitea.ref_name }} \
-v \
.
- name: Build and push Docker image
id: push
uses: actions/docker-build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: git.unbind.ru/${{ gitea.repository }}:${{ gitea.ref_name }}
# labels: ${{ steps.meta.outputs.labels }}
- name: Push image
run: |
buildah push --format=v2s2 git.unbind.ru/${{ gitea.repository }}:${{ gitea.ref_name }}