Fix buildx-image workflow

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
v0.9
CrazyMax 2020-12-29 01:48:56 +01:00
parent 1c378111a7
commit bb1dcdad51
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- -
name: Login to DockerHub name: Login to DockerHub
if: inputs.dry-run != 'true' if: github.event.inputs.dry-run != 'true'
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
@ -52,12 +52,12 @@ jobs:
name: Create name: Create
run: | run: |
DRYRUN_FLAG="" DRYRUN_FLAG=""
if [ "${{ inputs.dry-run }}" = "true" ]; then if [ "${{ github.event.inputs.dry-run }}" = "true" ]; then
DRYRUN_FLAG="--dry-run" DRYRUN_FLAG="--dry-run"
fi fi
SOURCE_TAG="${{ inputs.source-tag }}" SOURCE_TAG="${{ github.event.inputs.source-tag }}"
DEST_TAG="${{ inputs.dest-tag }}" DEST_TAG="${{ github.event.inputs.dest-tag }}"
if [ "${{ matrix.flavor }}" != "" ]; then if [ "${{ matrix.flavor }}" != "" ]; then
if [ "$SOURCE_TAG" = "latest" ]; then if [ "$SOURCE_TAG" = "latest" ]; then
SOURCE_TAG="${{ matrix.flavor }}" SOURCE_TAG="${{ matrix.flavor }}"