Merge pull request #158 from jonatasoli/staging #2140
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: Docker Image CI | |
on: | |
release: | |
types: [published] | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get release version | |
id: get_version | |
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: jonatasoli/fast-ecommerce-api | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
tags: "latest,${{ env.RELEASE_VERSION }}" |