Update .gitea/workflows/php-deployer.yaml
All checks were successful
Node npm / Build and push image (pull_request) Successful in 49s
PHP 8.2 / Build and push image (pull_request) Successful in 51s
Node ssh / Build and push image (pull_request) Successful in 1m59s
PHP deployer / Build and push image (pull_request) Successful in 47s
Rust node / Build and push image (pull_request) Successful in 2m2s

This commit is contained in:
Jan Gleytenhoover 2024-08-16 12:11:39 +00:00
parent 823d50b686
commit d1e73cf1dd

@ -1,12 +1,17 @@
name: PHP deployer name: PHP deployer
# Variable for the image name
env:
image_name: php-deployer
on: on:
schedule: schedule:
- cron: "@weekly" - cron: "@weekly"
push: push:
branches: [main] branches: [main]
paths: paths:
- .gitea/workflows/php-deployer.yaml - .gitea/workflows/${{ env.image_name }}.yaml
- images/actions/php-deployer/** - images/actions/${{ env.image_name }}/**
pull_request: pull_request:
jobs: jobs:
@ -39,20 +44,20 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-php-deployer-${{ github.sha }} key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-php-deployer- ${{ runner.os }}-${{ env.image_name }}-
- name: Build and push - name: Build and push
uses: https://git.kjan.de/actions/build-push-action@v6 uses: https://git.kjan.de/actions/build-push-action@v6
with: with:
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
context: ./images/actions/php-deployer context: ./images/actions/${{ env.image_name }}
push: ${{ github.ref == 'refs/heads/main' }} push: ${{ github.ref == 'refs/heads/main' }}
tags: | tags: |
git.kjan.de/actions/php-deployer:latest git.kjan.de/actions/${{ env.image_name }}:latest
git.kjan.de/actions/php-deployer:${{ gitea.sha }} git.kjan.de/actions/${{ env.image_name }}:${{ gitea.sha }}
- # Temp fix - # Temp fix
# https://github.com/docker/build-push-action/issues/252 # https://github.com/docker/build-push-action/issues/252
@ -60,4 +65,4 @@ jobs:
name: Move cache name: Move cache
run: | run: |
rm -rf /tmp/.buildx-cache rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache