File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments