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