~ fix build
This commit is contained in:
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
@@ -16,7 +16,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSER_AUTH: "{ \"github-oauth\": {\"github.com\": \"${{ secrets.HVG_DEV_GH_TOKEN }}\"}}"
|
COMPOSER_AUTH: "{ \"github-oauth\": {\"github.com\": \"${{ secrets.HVG_DEV_GH_TOKEN }}\"}}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pack-example:
|
pack-example:
|
||||||
name: Pack example!
|
name: Pack example!
|
||||||
@@ -42,7 +42,11 @@ jobs:
|
|||||||
echo "TAG=$tag" >> $GITHUB_ENV;
|
echo "TAG=$tag" >> $GITHUB_ENV;
|
||||||
- name: Build Image with pack
|
- name: Build Image with pack
|
||||||
run: |
|
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 \
|
--builder heroku/buildpacks:20 \
|
||||||
--descriptor project.toml \
|
--descriptor project.toml \
|
||||||
--workspace /app \
|
--workspace /app \
|
||||||
@@ -50,4 +54,4 @@ 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user