Skip to content

Commit e579fa8

Browse files
committed
fix
1 parent 4aaeb78 commit e579fa8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
env:
13+
VERSION: $(cat .version)
1214
steps:
1315
- name: Checkout code
1416
uses: actions/checkout@v4
@@ -26,7 +28,7 @@ jobs:
2628
file: deploy/Dockerfile-BE
2729
platforms: linux/amd64,linux/arm64
2830
push: true
29-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:$(cat .version), ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:latest
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:${{ env.VERSION }}, ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:latest
3032

3133
- name: Build and push Frontend
3234
uses: docker/build-push-action@v5
@@ -35,4 +37,4 @@ jobs:
3537
file: deploy/Dockerfile-FE
3638
platforms: linux/amd64,linux/arm64
3739
push: true
38-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:$(cat .version), ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:latest
40+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:${{ env.VERSION }}, ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:latest

0 commit comments

Comments
 (0)