Update .gitea/workflows/node-npm.yaml
Some checks failed
Node npm / Build and push image (pull_request) Failing after 30s
PHP 8.2 / Build and push image (pull_request) Successful in 49s
PHP deployer / Build and push image (pull_request) Successful in 50s
Node ssh / Build and push image (pull_request) Successful in 1m58s
Rust node / Build and push image (pull_request) Successful in 1m24s
Some checks failed
Node npm / Build and push image (pull_request) Failing after 30s
PHP 8.2 / Build and push image (pull_request) Successful in 49s
PHP deployer / Build and push image (pull_request) Successful in 50s
Node ssh / Build and push image (pull_request) Successful in 1m58s
Rust node / Build and push image (pull_request) Successful in 1m24s
This commit is contained in:
parent
e216c14497
commit
ae004073f0
@ -1,12 +1,16 @@
|
|||||||
name: Node npm
|
name: Node npm
|
||||||
|
|
||||||
|
# Variable for the image name
|
||||||
|
image_name: node-npm
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "@weekly"
|
- cron: "@weekly"
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- .gitea/workflows/node-npm.yaml
|
- .gitea/workflows/${{ vars.image_name }}.yaml
|
||||||
- images/actions/node-npm/**
|
- images/actions/${{ vars.image_name }}/**
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -39,20 +43,20 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-node-npm-${{ github.sha }}
|
key: ${{ runner.os }}-${{ vars.image_name }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-npm-
|
${{ runner.os }}-${{ vars.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/node-npm
|
context: ./images/actions/${{ vars.image_name }}
|
||||||
push: ${{ github.ref == 'refs/heads/main' }}
|
push: ${{ github.ref == 'refs/heads/main' }}
|
||||||
tags: |
|
tags: |
|
||||||
git.kjan.de/actions/node-npm:latest
|
git.kjan.de/actions/${{ vars.image_name }}:latest
|
||||||
git.kjan.de/actions/node-npm:${{ gitea.sha }}
|
git.kjan.de/actions/${{ vars.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
|
||||||
|
Loading…
Reference in New Issue
Block a user