From f330c11fa489fc8541a495cbd2c467d1ecd7d5df Mon Sep 17 00:00:00 2001 From: Ly Date: Mon, 12 Feb 2024 19:45:30 +0100 Subject: [PATCH] php-fpm-build --- .github/workflows/app.yml | 8 ++++++-- .github/workflows/php-fpm.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index f982bfd..fe81a02 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -37,8 +37,12 @@ jobs: - name: Build image run: docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) . --file $DOCKERFILE_PATH --tag $IMAGE_NAME - - name: Log into registry - run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Push image run: | diff --git a/.github/workflows/php-fpm.yml b/.github/workflows/php-fpm.yml index 9072d9c..2ad2790 100644 --- a/.github/workflows/php-fpm.yml +++ b/.github/workflows/php-fpm.yml @@ -17,8 +17,12 @@ jobs: - name: Build image run: docker build --build-arg=COMMIT=$(git rev-parse --short HEAD) . --file $DOCKERFILE_PATH --tag $IMAGE_NAME - - name: Log into registry - run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Push image run: |