Update .gitea/workflows/node-npm.yaml (#8)
All checks were successful
Node npm / Build and push image (push) Successful in 48s
PHP 8.2 / Build and push image (push) Successful in 1m4s
Node ssh / Build and push image (push) Successful in 1m55s
PHP deployer / Build and push image (push) Successful in 44s
Rust node / Build and push image (push) Successful in 1m39s

Reviewed-on: #8
Co-authored-by: Milkman337 <jan@kjan.de>
Co-committed-by: Milkman337 <jan@kjan.de>
This commit is contained in:
Jan Gleytenhoover 2024-08-15 16:12:12 +00:00 committed by Jan Gleytenhoover
parent 1040a99a3d
commit 7fb7e4c993
5 changed files with 94 additions and 4 deletions

@ -35,11 +35,29 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-node-npm-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-npm-
- 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-npm
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/node-npm:latest
git.kjan.de/actions/node-npm:${{ gitea.run_number }}
git.kjan.de/actions/node-npm:${{ gitea.run_number }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

@ -35,11 +35,29 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-node-ssh-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-ssh-
- 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
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/node-ssh:latest
git.kjan.de/actions/node-ssh:${{ gitea.run_number }}
git.kjan.de/actions/node-ssh:${{ gitea.run_number }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

@ -35,12 +35,30 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-php-8-2-${{ github.sha }}
restore-keys: |
${{ runner.os }}-php-8-2-
- 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/php-8.2
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/php-8.2:latest
git.kjan.de/actions/php-8.2:${{ gitea.run_number }}
git.kjan.de/actions/php-8.2:${{ gitea.run_number }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

@ -35,11 +35,29 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-php-deployer-${{ github.sha }}
restore-keys: |
${{ runner.os }}-php-deployer-
- 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/php-deployer
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/php-deployer:latest
git.kjan.de/actions/php-deployer:${{ gitea.run_number }}
git.kjan.de/actions/php-deployer:${{ gitea.run_number }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

@ -35,11 +35,29 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-rust-node-${{ github.sha }}
restore-keys: |
${{ runner.os }}-rust-node-
- 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
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
git.kjan.de/actions/rust-node:latest
git.kjan.de/actions/rust-node:${{ gitea.run_number }}
- # Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache