From f4312bba5ebbe331b41c866df0c831b76260851b Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 26 Jul 2022 06:43:09 -0400 Subject: [PATCH] fix: Fixing push to DockerHub (#5468) * fix: Fixing push to DockerHub * Update .github/workflows/publish-docker.yml Co-authored-by: Aakansha Doshi --- .github/workflows/publish-docker.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 4f8b81c8..1ec35b8b 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -10,11 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: docker/build-push-action@v2 + - name: Checkout repository + uses: actions/checkout@v3 + - name: Login to DockerHub + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - repository: excalidraw/excalidraw - tag_with_ref: true - tag_with_sha: true + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: excalidraw/excalidraw:latest