Files
php-petlandia/.gitea/workflows/main.yaml
T
anry bacff2434a
PHP Image build (Buildah with cache & debug) / Build and Push image with Buildah (cache) (push) Failing after 1m53s
Update .gitea/workflows/main.yaml
2026-10-27 15:20:14 +00:00

30 lines
894 B
YAML

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 with Buildah (cache)
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | \
buildah login --username anry --password-stdin git.unbind.ru
- 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: Push image
run: |
buildah push --format=v2s2 git.unbind.ru/${{ gitea.repository }}:${{ gitea.ref_name }}