@@ -314,28 +314,28 @@ jobs:
314314 asset_name : ${{ env.LINUX_PACKAGE_NAME }}
315315 asset_content_type : application/octet-stream
316316
317- # build-for-docker:
318- # runs-on: ubuntu-latest
319- # steps:
320- # - name: Checkout
321- # uses: actions/checkout@v2
322- #
323- # - name: Login to Docker Hub
324- # uses: docker/login-action@v1
325- # with:
326- # username: ${{ secrets.DOCKER_HUB_USERNAME }}
327- # password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
328- #
329- # - name: Set up Docker Buildx
330- # uses: docker/setup-buildx-action@v1
331- #
332- # - name: Build and push
333- # uses: docker/build-push-action@v2
334- # with:
335- # context: .
336- # file: ./frontend/scripts/docker-buildfiles/Dockerfile
337- # builder: ${{ steps.buildx.outputs.name }}
338- # push: true
339- # tags: ${{ secrets.DOCKER_HUB_USERNAME }}/appflowy_client:${{ github.ref_name }}
340- # cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache
341- # cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache,mode=max
317+ build-for-docker :
318+ runs-on : ubuntu-latest
319+ steps :
320+ - name : Checkout
321+ uses : actions/checkout@v2
322+
323+ - name : Login to Docker Hub
324+ uses : docker/login-action@v1
325+ with :
326+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
327+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
328+
329+ - name : Set up Docker Buildx
330+ uses : docker/setup-buildx-action@v1
331+
332+ - name : Build and push
333+ uses : docker/build-push-action@v2
334+ with :
335+ context : .
336+ file : ./frontend/scripts/docker-buildfiles/Dockerfile
337+ builder : ${{ steps.buildx.outputs.name }}
338+ push : true
339+ tags : ${{ secrets.DOCKER_HUB_USERNAME }}/appflowy_client:${{ github.ref_name }}
340+ cache-from : type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache
341+ cache-to : type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache,mode=max
0 commit comments