chore(actions): fix docker release pipeline

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2022-06-16 09:00:11 +03:00
parent a1c3d8e33d
commit 46220183ae
1 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@ on:
PRERELEASE:
description: 'Whether this is a prerelease'
type: boolean
required: false
required: true
release:
types: [published]
@ -20,7 +20,7 @@ permissions:
env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
IS_PRERELEASE: ${{ github.event.release.prerelease == true || github.event.inputs.PRERELEASE }}
IS_PRERELEASE: ${{ github.event.release.prerelease || github.event.inputs.PRERELEASE }}
jobs:
# ===============================================================
@ -29,6 +29,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: print_env
run: env
- name: checkout
uses: actions/checkout@v3
@ -60,14 +63,13 @@ jobs:
run: |
echo "Event prerelease ${{ github.event.release.prerelease }}"
echo "Input prerelease ${{ github.event.inputs.PRERELEASE }}"
echo "env.IS_PRERELEASE ${{ env.IS_PRERELEASE}} "
ls -l
ls -l releases
for f in releases/*.tar.gz; do tar xvfz $f -C releases; done
rm releases/*.tar.gz
- name: Build release image
if: env.IS_PRERELEASE == 'false'
if: env.IS_PRERELEASE != 'true'
uses: docker/build-push-action@v3
with:
context: .