Update .gitea/workflows/node-npm.yaml #10

Merged
jank merged 6 commits from better-scheme into main 2024-08-16 12:28:25 +00:00
Showing only changes of commit 223949f2eb - Show all commits

@ -1,12 +1,17 @@
name: Rust node
# Variable for the image name
env:
image_name: rust-node
on:
schedule:
- cron: "@weekly"
push:
branches: [main]
paths:
- .gitea/workflows/rust-node.yaml
- images/actions/rust-node/**
- .gitea/workflows/${{ env.image_name }}.yaml
- images/actions/${{ env.image_name }}/**
pull_request:
jobs:
@ -39,20 +44,20 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-rust-node-${{ github.sha }}
key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-rust-node-
${{ 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/rust-node
context: ./images/actions/${{ env.image_name }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/rust-node:latest
git.kjan.de/actions/rust-node:${{ 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