@@ -34,10 +34,16 @@ jobs:
3434 uses : actions/checkout@v2
3535 with :
3636 ref : refs/tags/${{ github.event.inputs.version }}
37-
37+
38+ - name : Setup dotnet
39+ uses : actions/setup-dotnet@v1
40+ with :
41+ dotnet-version : ' 6.0'
42+
43+ # Assign environment variables used in subsequent steps
3844 - name : repository name fix
3945 run : echo "image_repository_name=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
40-
46+ # TAG_NAME defaults to 'latest' if not a release or manual deployment
4147 - name : Assign version
4248 run : |
4349 echo "TAG_NAME=latest" >> $GITHUB_ENV
7177 runs-on : ubuntu-20.04
7278 if : ${{ github.event.workflow_run.conclusion != 'failure' }}
7379 steps :
74- # Checkout latest or specific tag
7580 - name : checkout
7681 if : ${{ github.event.inputs.version == '' || github.event.inputs.version == 'latest' }}
7782 uses : actions/checkout@v2
@@ -92,13 +97,12 @@ jobs:
9297 if [ "${{ github.event.inputs.version }}" != "" ]; then
9398 echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
9499 fi;
95-
96100 - name : docker-compose file prep
97101 uses : danielr1996/envsubst-action@1.0.0
98102 env :
99- APP_NAME : ${{ github.event.repository.name }}
100- RELEASE_VERSION : ${{ github.event.release.tag_name }}
103+ RELEASE_VERSION : ${{ env.TAG_NAME }}
101104 IMAGE_REPO : ${{ env.image_repository_name }}
105+ APP_NAME : ${{ github.event.repository.name }}
102106 HOST_DOMAIN : ${{ secrets.DEPLOY_API }}
103107 LETSENCRYPT_EMAIL : ${{ secrets.LETSENCRYPT_EMAIL }}
104108 with :
0 commit comments