Update docker-publish.yml

This commit is contained in:
Gabor FELEGYHAZI
2022-06-28 14:55:00 +02:00
committed by GitHub
parent f29e833094
commit c057e4aff9

View File

@@ -15,7 +15,8 @@ on:
branches: [ "main" ]
env:
COMPOSER_AUTH: "{ \"github-oauth\": {\"github.com\": \"${{ secrets.HVG_DEV_GH_TOKEN }}\"}}"
PACK_VERSION: "0.27.0"
COMPOSER_AUTH: "{ \"github-oauth\": {\"github.com\": \"${{ secrets.HVG_DEV_GH_TOKEN }}\"}}"
jobs:
pack-example:
@@ -41,9 +42,18 @@ jobs:
[[ $tag == '' ]] || tag="${year}.${month}.${{ github.run_number }}";
echo "TAG=$tag" >> $GITHUB_ENV;
- name: Setup Pack
uses: buildpacks/github-actions/setup-pack@v4.8.0
with:
pack-version: 0.27.0
run: |
echo "Installing pack ${PACK_VERSION}"
curl \
--show-error \
--silent \
--location \
--fail \
--retry 3 \
--connect-timeout 5 \
--max-time 60 \
"https://github.com/buildpacks/pack/releases/download/v${PACK_VERSION}/pack-v${PACK_VERSION}-linux.tgz" \
| tar -C "${HOME}/bin" -xz pack
- name: Build Image with pack
run: |
pack --version