~ fix build

This commit is contained in:
felegy
2022-06-28 10:10:14 +02:00
parent 4be3f05114
commit d133633314
2 changed files with 8 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ on:
env:
COMPOSER_AUTH: "{ \"github-oauth\": {\"github.com\": \"${{ secrets.HVG_DEV_GH_TOKEN }}\"}}"
jobs:
pack-example:
name: Pack example!
@@ -42,7 +42,11 @@ jobs:
echo "TAG=$tag" >> $GITHUB_ENV;
- name: Build Image with pack
run: |
pack build ghcr.io/hvg/blog:$TAG \
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workspace -w /workspace \
-e "COMPOSER_AUTH=$COMPOSER_AUTH" \
buildpacksio/pack build ghcr.io/hvg/blog:$TAG \
--builder heroku/buildpacks:20 \
--descriptor project.toml \
--workspace /app \
@@ -50,4 +54,4 @@ jobs:
- name: Tag Docker image to ref
run: |
docker tag ghcr.io/hvg/blog:$TAG ghcr.io/hvg/blog:$REF

View File

@@ -1 +1,2 @@
web: PHP_INI_SCAN_DIR=${PHP_INI_SCAN_DIR-:/app/config/php.d} heroku-php-nginx -C config/nginx.conf web
bash: bash -l