Skip to content

Commit c181f91

Browse files
authored
ci: enable docker build (#1654)
1 parent e52f59b commit c181f91

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)