Release on Docker Hub upon pushing a tag #4
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: Release on Docker Hub upon pushing a tag | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
preparations: | ||
name: Preparations | ||
uses: ./.github/workflows/push.yml | ||
Check failure on line 11 in .github/workflows/tag.yml GitHub Actions / .github/workflows/tag.ymlInvalid workflow file
|
||
docker-publish: | ||
name: Publish Docker image as tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Tag image | ||
run: docker tag witnet/price-feeds-poller:latest witnet/price-feeds-poller:${{github.ref_name}} | ||
- name: Log into Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Push image to Docker Hub | ||
run: docker push witnet/price-feeds-poller:${{github.ref_name}} | ||