Update .gitea/workflows/node-ssh.yaml
All checks were successful
Node npm / Build and push image (pull_request) Successful in 47s
PHP 8.2 / Build and push image (pull_request) Successful in 55s
Node ssh / Build and push image (pull_request) Successful in 2m0s
PHP deployer / Build and push image (pull_request) Successful in 41s
Rust node / Build and push image (pull_request) Successful in 1m56s

This commit is contained in:
Jan Gleytenhoover 2024-08-16 12:10:44 +00:00
parent 3532e68242
commit edab056cab

@ -1,12 +1,17 @@
name: Node ssh
# Variable for the image name
env:
image_name: node-ssh
on:
schedule:
- cron: "@weekly"
push:
branches: [main]
paths:
- .gitea/workflows/node-ssh.yaml
- images/actions/node-ssh/**
- .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 }}-node-ssh-${{ github.sha }}
key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-ssh-
${{ 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/node-ssh
context: ./images/actions/${{ env.image_name }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/node-ssh:latest
git.kjan.de/actions/node-ssh:${{ 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
@ -60,4 +65,4 @@ jobs:
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache