Skip to content

Commit 4aaeb78

Browse files
committed
fd
1 parent c693cda commit 4aaeb78

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ jobs:
1919
username: ${{ secrets.DOCKERHUB_USERNAME }}
2020
password: ${{ secrets.DOCKERHUB_TOKEN }}
2121

22-
- name: Get version
23-
run: |
24-
echo "VERSION=$(cat .version)" >> $GITHUB_ENV
25-
2622
- name: Build and push Backend
2723
uses: docker/build-push-action@v5
2824
with:
2925
context: .
3026
file: deploy/Dockerfile-BE
3127
platforms: linux/amd64,linux/arm64
3228
push: true
33-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:${{ env.VERSION }}, ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:latest
29+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:$(cat .version), ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-backend:latest
3430

3531
- name: Build and push Frontend
3632
uses: docker/build-push-action@v5
@@ -39,4 +35,4 @@ jobs:
3935
file: deploy/Dockerfile-FE
4036
platforms: linux/amd64,linux/arm64
4137
push: true
42-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:${{ env.VERSION }}, ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:latest
38+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:$(cat .version), ${{ secrets.DOCKERHUB_USERNAME }}/ghostsend-frontend:latest

0 commit comments

Comments
 (0)