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