Repository navigation
fix(worktree): slugify the worktree name for docker compose #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Disabled in docker-starter itself: there is nothing to deploy. `castor init` | |
| # enables it in your project, by removing this paragraph and uncommenting the rest. | |
| # name: Build and push production images | |
| # | |
| # "on": | |
| # push: | |
| # branches: ["main"] | |
| # tags: ["*"] | |
| # | |
| # permissions: | |
| # contents: read | |
| # packages: write | |
| # | |
| # env: | |
| # # Fix for symfony/color detection. We know GitHub Actions can handle it | |
| # ANSICON: 1 | |
| # CASTOR_CONTEXT: prod | |
| # REGISTRY: "ghcr.io/${{ github.repository }}" | |
| # | |
| # jobs: | |
| # build-push: | |
| # name: Build and push production images | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Set up Docker Buildx | |
| # uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 | |
| # | |
| # - name: Log in to registry | |
| # shell: bash | |
| # run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | |
| # | |
| # - name: setup-castor | |
| # uses: castor-php/setup-castor@2a495b8c91f00be6768ad8a040ba8634c797d386 # v1.1.0 | |
| # | |
| # - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| # with: | |
| # persist-credentials: false | |
| # | |
| # # Images are tagged with the short commit sha (what a deployment should | |
| # # reference), "latest" on main, and the git tag when there is one | |
| # - name: "Build and push the production images" | |
| # shell: bash | |
| # run: | | |
| # tags=(--tag="${GITHUB_SHA::7}") | |
| # if [ "${GITHUB_REF_NAME}" = main ]; then tags+=(--tag=latest); fi | |
| # if [ "${GITHUB_REF_TYPE}" = tag ]; then tags+=(--tag="${GITHUB_REF_NAME}"); fi | |
| # castor docker:push "${tags[@]}" |