Per #12, fix workflow to reference tag instead of tag_name #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker Images | |
on: | |
push: | |
tags: | |
- v* | |
env: | |
DOCKERHUB_BASE_REPO: dtcenter/met-base | |
DOCKERHUB_UNIT_TEST_REPO: dtcenter/met-base-unit-test | |
jobs: | |
handle_docker_images: | |
name: Handle Docker Images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get tag name | |
id: get_tag_name | |
uses: devops-actions/[email protected] | |
with: | |
strip_v: false | |
- name: Build Docker Image | |
run: .github/jobs/build_docker_image.sh | |
env: | |
GITHUB_TAG: ${{ steps.get_tag_name.outputs.tag }} | |
- name: Push Docker Image | |
run: .github/jobs/push_docker_image.sh | |
env: | |
GITHUB_TAG: ${{ steps.get_tag_name.outputs.tag }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |