Update .gitea/workflows/node-npm.yaml
All checks were successful
Node npm / Build and push image (pull_request) Successful in 41s
PHP 8.2 / Build and push image (pull_request) Successful in 58s
Node ssh / Build and push image (pull_request) Successful in 1m55s
PHP deployer / Build and push image (pull_request) Successful in 38s
Rust node / Build and push image (pull_request) Successful in 1m49s

This commit is contained in:
Jan Gleytenhoover 2024-08-16 12:08:24 +00:00
parent ae004073f0
commit 3532e68242

@ -1,6 +1,7 @@
name: Node npm
# Variable for the image name
env:
image_name: node-npm
on:
@ -9,8 +10,8 @@ on:
push:
branches: [main]
paths:
- .gitea/workflows/${{ vars.image_name }}.yaml
- images/actions/${{ vars.image_name }}/**
- .gitea/workflows/${{ env.image_name }}.yaml
- images/actions/${{ env.image_name }}/**
pull_request:
jobs:
@ -43,20 +44,20 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-${{ vars.image_name }}-${{ github.sha }}
key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ vars.image_name }}-
${{ runner.os }}-${{ env.image_name }}-
- name: Build and push
uses: https://git.kjan.de/actions/build-push-action@v6
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
context: ./images/actions/${{ vars.image_name }}
context: ./images/actions/${{ env.image_name }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/${{ vars.image_name }}:latest
git.kjan.de/actions/${{ vars.image_name }}:${{ gitea.sha }}
git.kjan.de/actions/${{ env.image_name }}:latest
git.kjan.de/actions/${{ env.image_name }}:${{ gitea.sha }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252