commit 52a84cfccc00ba4937eea018b718dbee184fd7cd Author: Snoweuph Date: Sat Jul 27 20:21:30 2024 +0200 Add Symfony Container Image diff --git a/.gitea/workflows/Symfony.yml b/.gitea/workflows/Symfony.yml new file mode 100644 index 0000000..963de52 --- /dev/null +++ b/.gitea/workflows/Symfony.yml @@ -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 }} diff --git a/Symfony/Dockerfile b/Symfony/Dockerfile new file mode 100644 index 0000000..626d890 --- /dev/null +++ b/Symfony/Dockerfile @@ -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