File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1919 with :
2020 registry : ghcr.io
2121 username : ${{ github.repository_owner }}
22- password : ${{ secrets.GH_TOKEN }}
22+ password : ${{ secrets.GITHUB_TOKEN }}
2323
2424 - name : Preset Image Name
25+ id : preset_image_name
2526 run : |
2627 echo "IMAGE_URL=$(echo ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
2728
@@ -30,17 +31,16 @@ jobs:
3031 with :
3132 context : .
3233 file : ./Dockerfile
33- push : true
34- tags : ${{ env.IMAGE_URL }}
34+ tags : ${{ steps.preset_image_name.outputs.IMAGE_URL }}
3535
3636 - id : deploy
3737 name : Deploy Image to CapRover
3838 uses : caprover/deploy-from-github@v1.1.2
3939 with :
40- server : ' ${{ secrets.CAPTAINROVER_SERVER }}'
41- app : ' ${{ secrets.CAPTAINROVER_APP_NAME }}'
42- token : ' ${{ secrets.CAPTAINROVER_APP_TOKEN }}'
43- image : ' ${{ env. IMAGE_URL }}'
40+ server : ${{ secrets.CAPTAINROVER_SERVER }}
41+ app : ${{ secrets.CAPTAINROVER_APP_NAME }}
42+ token : ${{ secrets.CAPTAINROVER_APP_TOKEN }}
43+ image : ${{ steps.preset_image_name.outputs. IMAGE_URL }}
4444
4545 - name : Show Deployment Output
4646 run : |
You can’t perform that action at this time.
0 commit comments