├── .dockerignore ├── CHANGELOG.md ├── Dockerfile ├── .gitignore ├── README.md ├── LICENSE.md └── .github └── workflows ├── build-and-push-docker-images.yml └── build-docker-images.yml /.dockerignore: -------------------------------------------------------------------------------- 1 | # Git repository meta information 2 | **/.git 3 | **/.github 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Docker craft6-revamp 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | ## 1.0.0 - 2025-09.23 6 | ### Added 7 | * Initial release 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | ARG TAG=2.8 2 | 3 | FROM composer:$TAG 4 | 5 | WORKDIR /app 6 | 7 | ENV PATH="$PATH:/tmp/vendor/bin" 8 | 9 | # Install packages 10 | RUN set -eux; \ 11 | composer global config bin-dir --absolute \ 12 | && \ 13 | composer global require craftcms/craft6-revamp -W 14 | 15 | RUN ["chmod", "+x", "/docker-entrypoint.sh"] 16 | 17 | CMD ["craft6-revamp"] 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # VITEJS 2 | vite 3 | 4 | # BUILD FILES 5 | node_modules/ 6 | yarn-error.log 7 | npm-debug.log 8 | .pnpm-store 9 | 10 | # MISC FILES 11 | .cache 12 | .DS_Store 13 | .idea 14 | .project 15 | .settings 16 | *.esproj 17 | *.sublime-workspace 18 | *.sublime-project 19 | *.tmproj 20 | *.tmproject 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | config.codekit3 27 | prepros-6.config 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker craft6-revamp 2 | 3 | Docker image for craft6-revamp 4 | 5 | ## About craft6-revamp 6 | 7 | This repo contains a Dockerfile that is used to build & push Docker images to [Docker Hub](https://hub.docker.com/repository/docker/nystudio107/node-yeoman) that contain the Composer package command `craft6-revamp` globally installed, so you can run it via Docker without installing PHP locally. 8 | 9 | The images are built "in the cloud" via GitHub actions: 10 | 11 | - When any changes are pushed to the `develop` branch, the images are rebuilt to ensure they build properly 12 | - When a new tagged release is pushed, the images are built, tagged, and pushed to Docker Hub 13 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) nystudio107 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/build-and-push-docker-images.yml: -------------------------------------------------------------------------------- 1 | name: Build and Push Docker Images 2 | on: 3 | push: 4 | tags: 5 | - '*.*.*' 6 | workflow_dispatch: 7 | jobs: 8 | build-composer: 9 | runs-on: ubuntu-latest 10 | environment: GH Actions 11 | strategy: 12 | matrix: 13 | composer: ["2.8"] 14 | name: craft6-revamp ${{ matrix.composer }} images 15 | steps: 16 | - name: Set version tag 17 | run: | 18 | echo "TAGS=nystudio107/craft6-revamp:${{ matrix.composer }}" >> $GITHUB_ENV 19 | - name: Set latest tag 20 | if: ${{ matrix.composer=='2.8' }} 21 | run: | 22 | echo "TAGS=$TAGS,nystudio107/craft6-revamp:latest" >> $GITHUB_ENV 23 | - name: Check out the repository 24 | uses: actions/checkout@v5 25 | - name: Set up QEMU 26 | uses: docker/setup-qemu-action@v3 27 | - name: Set up Docker Buildx 28 | uses: docker/setup-buildx-action@v3 29 | with: 30 | install: true 31 | - name: Login to Docker Hub 32 | uses: docker/login-action@v3 33 | with: 34 | username: ${{ secrets.DOCKERHUB_USERNAME }} 35 | password: ${{ secrets.DOCKERHUB_TOKEN }} 36 | - name: Build nystudio107/craft6-revamp:${{ matrix.composer }} 37 | uses: docker/build-push-action@v2 38 | with: 39 | context: ./ 40 | file: ./Dockerfile 41 | push: true 42 | platforms: linux/amd64,linux/arm64 43 | tags: ${{ env.TAGS }} 44 | build-args: | 45 | TAG=${{ matrix.composer }} 46 | -------------------------------------------------------------------------------- /.github/workflows/build-docker-images.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker Images 2 | on: 3 | push: 4 | tags: 5 | branches: 6 | - develop 7 | workflow_dispatch: 8 | jobs: 9 | build-composer: 10 | runs-on: ubuntu-latest 11 | environment: GH Actions 12 | strategy: 13 | matrix: 14 | composer: ["2.8"] 15 | name: craft6-revamp ${{ matrix.composer }} images 16 | steps: 17 | - name: Set version tag 18 | run: | 19 | echo "TAGS=nystudio107/craft6-revamp:${{ matrix.composer }}" >> $GITHUB_ENV 20 | - name: Set latest tag 21 | if: ${{ matrix.composer=='2.8' }} 22 | run: | 23 | echo "TAGS=$TAGS,nystudio107/craft6-revamp:latest" >> $GITHUB_ENV 24 | - name: Check out the repository 25 | uses: actions/checkout@v5 26 | - name: Set up QEMU 27 | uses: docker/setup-qemu-action@v3 28 | - name: Set up Docker Buildx 29 | uses: docker/setup-buildx-action@v3 30 | with: 31 | install: true 32 | - name: Login to Docker Hub 33 | uses: docker/login-action@v3 34 | with: 35 | username: ${{ secrets.DOCKERHUB_USERNAME }} 36 | password: ${{ secrets.DOCKERHUB_TOKEN }} 37 | - name: Build nystudio107/craft6-revamp:${{ matrix.composer }} 38 | uses: docker/build-push-action@v2 39 | with: 40 | context: ./ 41 | file: ./Dockerfile 42 | push: false 43 | platforms: linux/amd64,linux/arm64 44 | tags: ${{ env.TAGS }} 45 | build-args: | 46 | TAG=${{ matrix.composer }} 47 | --------------------------------------------------------------------------------