Skip to content

Commit ebba3ff

Browse files
committed
Fix: GH workflow
1 parent 8879311 commit ebba3ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
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: |

0 commit comments

Comments
 (0)