Compare commits

...

4 Commits

Author SHA1 Message Date
8f761565d0 fix: php install
All checks were successful
Build containers / changes (push) Successful in 2s
Build containers / base-image (push) Successful in 1m42s
Build containers / dependent-images (go) (push) Successful in 32s
Build containers / dependent-images (php) (push) Successful in 38s
Build containers / dependent-images (infra) (push) Successful in 56s
2026-01-29 16:19:56 +01:00
86e3275c67 feat: add php container
Some checks failed
Build containers / changes (push) Successful in 2s
Build containers / base-image (push) Successful in 44s
Build containers / dependent-images (php) (push) Successful in 10s
Build containers / dependent-images (go) (push) Successful in 25s
Build containers / dependent-images (infra) (push) Has been cancelled
2026-01-29 16:10:08 +01:00
e6bd3f3524 fix: permissions of /run/user/1000
All checks were successful
Build containers / changes (push) Successful in 2s
Build containers / base-image (push) Successful in 41s
Build containers / dependent-images (go) (push) Successful in 45s
Build containers / dependent-images (infra) (push) Successful in 51s
2026-01-11 15:50:14 +01:00
4e1737f5b3 ci: add dnf cache
All checks were successful
Build containers / changes (push) Successful in 3s
Build containers / base-image (push) Successful in 43s
Build containers / dependent-images (go) (push) Successful in 24s
Build containers / dependent-images (infra) (push) Successful in 55s
2025-12-29 17:00:17 +01:00
6 changed files with 24 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ jobs:
fedora: ${{ steps.filter.outputs.fedora == 'true' }}
infra: ${{ steps.filter.outputs.infra == 'true' || steps.filter.outputs.fedora == 'true' }}
go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.fedora == 'true' }}
php: ${{ steps.filter.outputs.php == 'true' || steps.filter.outputs.fedora == 'true' }}
any_change: ${{ steps.filter.outputs.workflow == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
steps:
- uses: actions/checkout@v4
@@ -28,6 +29,7 @@ jobs:
fedora: ['containers/fedora/**']
infra: ['containers/infra/**']
go: ['containers/go/**']
php: ['containers/php/**']
base-image:
needs: [changes]
@@ -68,13 +70,14 @@ jobs:
strategy:
fail-fast: false
matrix:
container: [infra, go]
container: [infra, go, php]
steps:
- name: Check if build needed
id: check
run: |
if [[ "${{ matrix.container }}" == "infra" && "${{ needs.changes.outputs.infra }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
if [[ "${{ matrix.container }}" == "go" && "${{ needs.changes.outputs.go }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
if [[ "${{ matrix.container }}" == "php" && "${{ needs.changes.outputs.php }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
if [[ "${{ needs.changes.outputs.any_change }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
- name: Clone repo
if: steps.check.outputs.run == 'true'

View File

@@ -1,16 +1,15 @@
FROM quay.io/fedora/fedora:43
# === install system packages ===
RUN dnf update -y && \
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf update -y && \
dnf copr enable -y atim/lazygit && \
dnf -y install procps ping bash-completion glibc-langpack-en \
dnf -y --setopt=keepcache=1 install procps ping bash-completion glibc-langpack-en \
host-spawn dbus-launch \
zoxide git npm neovim awk jq unzip fd-find lazygit && \
dnf clean all
zoxide git npm neovim awk jq unzip fd-find lazygit
# === setup user ===
RUN useradd -ms /bin/bash user && \
echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers
RUN useradd -ms /bin/bash user && echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers && mkdir -p /run/user/1000 && chown user:user /run/user/1000
USER user
WORKDIR /home/user

View File

@@ -2,6 +2,7 @@ ARG TAG
FROM job79/fedora:${TAG}
USER root
RUN dnf -y install go && dnf clean all
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install go
USER user

View File

@@ -2,8 +2,8 @@ ARG TAG
FROM job79/fedora:${TAG}
USER root
RUN dnf -y install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')" && \
dnf clean all && \
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install kubectl k9s openssl age "$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq -r '.assets[] | select(.name | test("sops-.*.x86_64.rpm$")) | .browser_download_url')" && \
curl -sL https://talos.dev/install | sh && \
curl -s https://fluxcd.io/install.sh | bash

View File

@@ -0,0 +1,9 @@
ARG TAG
FROM job79/fedora:${TAG}
USER root
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install php composer && \
composer global require laravel/installer
USER user

2
containers/php/config.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
arg "-v $HOME/Documents/php:/home/user/Documents/php"