1- name : Backend docker image
1+ name : Server docker image
22
33on :
44 push :
@@ -14,7 +14,7 @@ concurrency:
1414
1515jobs :
1616 release :
17- name : Build & push backend image to Dockerhub
17+ name : Build & push server image to Dockerhub
1818 runs-on : ubuntu-latest
1919 if : github.repository == 'MobileTeleSystems/syncmaster' # prevent running on forks
2020
@@ -38,22 +38,22 @@ jobs:
3838 id : set_tag
3939 run : |
4040 if [[ "${{ github.ref_type }}" == "branch" && "${{ github.ref_name }}" == "develop" ]]; then
41- echo "TAG=mtsrus/syncmaster-backend :develop" >> $GITHUB_ENV
41+ echo "TAG=mtsrus/syncmaster-server :develop" >> $GITHUB_ENV
4242 elif [[ "${{ github.ref_type }}" == "tag" ]]; then
43- echo "TAG=mtsrus/syncmaster-backend :latest,mtsrus/syncmaster-backend :${{ github.ref_name }}" >> $GITHUB_ENV
43+ echo "TAG=mtsrus/syncmaster-server :latest,mtsrus/syncmaster-server :${{ github.ref_name }}" >> $GITHUB_ENV
4444 fi
4545
46- - name : Build Backend image
46+ - name : Build Server image
4747 uses : docker/build-push-action@v6
4848 with :
4949 tags : ${{ env.TAG }}
5050 context : .
5151 target : prod
52- file : docker/Dockerfile.backend
52+ file : docker/Dockerfile.server
5353 pull : true
5454 push : true
5555 cache-to : type=inline
56- cache-from : mtsrus/syncmaster-backend :develop
56+ cache-from : mtsrus/syncmaster-server :develop
5757 platforms : |
5858 linux/amd64
5959 linux/arm64/v8
7676 username : ${{ secrets.DOCKERHUB_USERNAME }}
7777 # this requires token with read+write+delete permissions. read+write is not enough!
7878 password : ${{ secrets.DOCKERHUB_TOKEN }}
79- repository : mtsrus/syncmaster-backend
79+ repository : mtsrus/syncmaster-server
8080 short-description : ${{ github.event.repository.description }}
8181 enable-url-completion : true
0 commit comments