From c69f17b6c1ba67c3b44b81ccabe30f2f8b04ff1b Mon Sep 17 00:00:00 2001 From: Yurii Pavlov Date: Sun, 23 Jun 2024 23:45:27 +0200 Subject: [PATCH] update php dockerfile --- dockerfiles/php/Dockerfile | 4 ++-- sh/docker.sh | 2 +- sh/env/.env.secret.template | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dockerfiles/php/Dockerfile b/dockerfiles/php/Dockerfile index 6c56ae3..b70fb58 100644 --- a/dockerfiles/php/Dockerfile +++ b/dockerfiles/php/Dockerfile @@ -1,7 +1,7 @@ FROM php:8.1-fpm-alpine3.19 -ENV XDEBUG_VERSION 3.1.4 -ENV IMAGICK_VERSION 3.7.0 +ENV XDEBUG_VERSION=3.1.4 +ENV IMAGICK_VERSION=3.7.0 ################################## # Adding WP-CLI # diff --git a/sh/docker.sh b/sh/docker.sh index 0d11663..597e3a6 100644 --- a/sh/docker.sh +++ b/sh/docker.sh @@ -83,7 +83,7 @@ if [ "$MODE" == "push" ]; then # Step 1: Login to GitHub Container Registry (GHCR) #export CR_PAT=YOUR_TOKEN - #echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin + echo "$GHCR_TOKEN" | docker login ghcr.io -u USERNAME --password-stdin # Step 2: Create a New Builder Instance diff --git a/sh/env/.env.secret.template b/sh/env/.env.secret.template index 5ad5d91..7f1860c 100644 --- a/sh/env/.env.secret.template +++ b/sh/env/.env.secret.template @@ -72,3 +72,6 @@ APP_BA_PASSWORD=generate_this_pass # For GitHub Secrets #COMPOSER_AUTH={\"github-oauth\":{\"github.com\":\"ACCESS_TOKEN_GITHUB\"}} #COMPOSER_AUTH={"github-oauth":{"github.com":"ACCESS_TOKEN_GITHUB"}} + +# ghcr.io auth token for docker images push +#GHCR_TOKEN=ACCESS_TOKEN