Skip to content

Merge pull request #158 from jonatasoli/staging #2140

Merge pull request #158 from jonatasoli/staging

Merge pull request #158 from jonatasoli/staging #2140

Workflow file for this run

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 }}"