Compare commits

...

2 commits

Author SHA1 Message Date
Peter Cai d270b638e5 element-web: Uprev to v1.11.58
All checks were successful
/ build-image (push) Successful in 1m25s
2024-02-15 15:26:42 -05:00
Peter Cai f1296db6c9 Add forgejo actions for automatic building and pushing 2024-02-15 15:26:20 -05:00
2 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,41 @@
on: [push]
jobs:
build-image:
runs-on: docker
container:
image: quay.io/podman/stable:v4.9.0
steps:
- name: Install additional packages
run: |
dnf -y install git nodejs
- name: Setup podman
run: |
sudo -u podman podman login gitea.angry.im --username PeterCxy --password ${{ secrets.FORGEJO_TOKEN }}
- name: Repository Checkout
uses: https://gitea.angry.im/actions/checkout@v3
with:
submodules: recursive
- name: Detect Directory Changes
id: changed-dirs
uses: https://github.com/tj-actions/changed-files@v42
with:
dir_names: 'true'
dir_names_max_depth: '1'
dir_names_exclude_current_dir: 'true'
files_ignore: |
.forgejo/**
build-image.sh
- name: Build & Push
if: ${{ steps.changed-dirs.all_changed_files_count != '0' }}
env:
ALL_CHANGED_DIRS: ${{ steps.changed-dirs.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_DIRS}; do
echo "---- Building ${file} ----"
sudo -u podman ./build-image.sh ${file}
done

View file

@ -1,4 +1,4 @@
ARG ELEMENT_VER=v1.11.57
ARG ELEMENT_VER=v1.11.58
FROM debian:11 AS builder