Skip to content

chore: Fix deploy docker script #62

chore: Fix deploy docker script

chore: Fix deploy docker script #62

Workflow file for this run

name: deploy_backend
on:
push:
tags:
- "v*.*.*"
jobs:
docker-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set GITHUB_TAG arg
id: vars
run: echo ::set-output name=GITHUB_TAG::${GITHUB_REF:10} # Remove /refs/head/
- name: Print version
run: echo "Publishing reacherhq/backend:${{ steps.vars.outputs.GITHUB_TAG }}"
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reacherhq/backend
dockerfile: backend/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.vars.outputs.GITHUB_TAG }},beta"