Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Fix/version description (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl authored Feb 8, 2021
1 parent 7ec5bf1 commit 0c55f93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,23 @@ jobs:
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
fetch-depth: 0 # checks out all branches and tags, necessary for versioning /about endpoint

- name: Dockerhub login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Deploy main
if: github.ref == 'refs/heads/main'
run: bash scripts/deploy_docker.sh staging

- name: Deploy tag
if: startsWith(github.ref, 'refs/tags/')
run: bash scripts/deploy_docker.sh ${GITHUB_REF##*/}

- name: Deploy Develop # unused
if: github.ref == 'refs/heads/develop'
run: bash scripts/deploy_docker_github.sh develop

0 comments on commit 0c55f93

Please sign in to comment.