From 0c55f938d426f1c1caa51493703130a3fee44212 Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Mon, 8 Feb 2021 11:11:15 +0100 Subject: [PATCH] Fix/version description (#253) --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 792827be2..400d0c614 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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