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
5 changed files with 65 additions and 42 deletions

@ -1,12 +1,17 @@
name: Node npm name: Node npm
# Variable for the image name
env:
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/${{ env.image_name }}.yaml
- images/actions/node-npm/** - 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 }}-node-npm-${{ github.sha }} key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-node-npm- ${{ 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/node-npm context: ./images/actions/${{ env.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/${{ env.image_name }}:latest
git.kjan.de/actions/node-npm:${{ 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

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

@ -1,12 +1,16 @@
name: PHP 8.2 name: PHP 8.2
# Variable for the image name
env:
image_name: php-8.2
on: on:
schedule: schedule:
- cron: "@weekly" - cron: "@weekly"
push: push:
branches: [main] branches: [main]
paths: paths:
- .gitea/workflows/php-8.2.yaml - .gitea/workflows/${{ env.image_name }}.yaml
- images/actions/php-8.2/** - images/actions/${{ env.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 }}-php-8-2-${{ github.sha }} key: ${{ runner.os }}-${{ env.image_name }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-php-8-2- ${{ 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-8.2 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-8.2:latest git.kjan.de/actions/${{ env.image_name }}:latest
git.kjan.de/actions/php-8.2:${{ 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
@ -61,4 +65,3 @@ jobs:
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

@ -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

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