Skip to content

Commit

Permalink
attempt to make docker push action workflow more testable / manually …
Browse files Browse the repository at this point in the history
…runnable
  • Loading branch information
jamesdbloom committed Aug 21, 2022
1 parent 128fcb2 commit ed952d6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build and push Docker image to Docker Hub
on:
workflow_dispatch:
tags:
description: 'Docker image tag'
required: true
push:
tags:
- mockserver-*
Expand All @@ -11,7 +15,15 @@ jobs:
- uses: actions/checkout@v3
- name: Get tag name
id: get_tag_version
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
shell: bash
run: |
if [ "$DOCKER_TAG" == "" ]; then
echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
else
echo "::set-output name=version::${DOCKER_TAG}"
fi
env:
DOCKER_TAG: ${{ github.event.inputs.logLevel }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down

0 comments on commit ed952d6

Please sign in to comment.