Add Symfony Container Image

This commit is contained in:
Snoweuph 2024-07-27 20:21:30 +02:00
commit 52a84cfccc
Signed by: Snoweuph
GPG key ID: A494330694B208EF
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,34 @@
name: "Build Symfony Devcontainer"
on:
push:
branches:
- 'master'
jobs:
build_act:
runs-on: 'priviliged'
steps:
- name: Install Docker
run: |
rm $(which docker) && curl -fsSL https://get.docker.com | sh
- name: Set up QEMU
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
- name: Setup Buildx
uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3'
- name: Login to Registry
uses: 'https://git.euph.dev/actions/docker-login@v3'
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push act base image
id: build_act_base
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
with:
context: "{{defaultContext}}:Smyfony"
push: true
tags: |
git.euph.dev/development_tools/Symfony:latest
git.euph.dev/development_tools/Symfony:${{ gitea.run_number }}

24
Symfony/Dockerfile Normal file
View file

@ -0,0 +1,24 @@
FROM registry.fedoraproject.org/fedora-toolbox:latest
# Add Symfony CLI Source
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | sudo -E bash
RUN dnf install -y \
git \
php \
composer \
php-pdo \
php-mysqlnd \
symfony-cli \
just \
jq \
fzf \
screen \
sed \
awk \
cut \
highlight \
&& dnf clean all
# Install Volta
RUN curl https://get.volta.sh | bash