diff --git a/.castor/docker.php b/.castor/docker.php index 8485102..21bd482 100644 --- a/.castor/docker.php +++ b/.castor/docker.php @@ -346,7 +346,7 @@ function push(): void 'type' => $type, 'context' => $config['build']['context'], 'dockerfile' => $config['build']['dockerfile'] ?? 'Dockerfile', - 'target' => $config['build']['target'] ?? null + 'target' => $config['build']['target'] ?? null, ]; } } diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 16171ce..59ecd9d 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -30,12 +30,9 @@ jobs: php-version: 8.3 tools: castor - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to registry + shell: bash + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin - name: "Build and start the infrastructure" run: "castor docker:push"