From ccff1e8a96323ef193237fc368d06d26928d0cbc Mon Sep 17 00:00:00 2001 From: Joel Wurtz Date: Mon, 29 Apr 2024 13:23:24 +0200 Subject: [PATCH] f --- .castor/docker.php | 2 +- .github/workflows/cache.yml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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"