~ fix build

This commit is contained in:
felegy
2022-06-28 11:17:57 +02:00
parent d133633314
commit 7759901513

View File

@@ -6,9 +6,9 @@ on:
# Publish semver tags as releases.
paths:
- '**.php'
- './composer.*'
- './config/**'
- './.github/**'
- 'composer.*'
- 'config/**'
- '.github/**'
- 'Procfile'
- 'project.toml'
pull_request:
@@ -40,13 +40,11 @@ jobs:
tag="${GITHUB_REF#tags/*/}";
[[ $tag == '' ]] || tag="${year}.${month}.${{ github.run_number }}";
echo "TAG=$tag" >> $GITHUB_ENV;
- name: Setup Pack
uses: buildpacks/github-actions/setup-pack@v4.4.0
- name: Build Image with pack
run: |
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 \
pack build ghcr.io/hvg/blog:$TAG \
--builder heroku/buildpacks:20 \
--descriptor project.toml \
--workspace /app \
@@ -54,4 +52,7 @@ jobs:
- name: Tag Docker image to ref
run: |
docker tag ghcr.io/hvg/blog:$TAG ghcr.io/hvg/blog:$REF
- name: Docker push
run: |
docker push ghcr.io/hvg/blog:$TAG
docker push ghcr.io/hvg/blog:$REF