From c8155ff326853d0c41bbacfe178bf2b93bc6fbe4 Mon Sep 17 00:00:00 2001 From: gilgeunwoo Date: Wed, 13 Dec 2023 12:16:17 +0900 Subject: [PATCH] docs :: CD --- .github/workflows/CD.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 9dc5e78..f0b12bf 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -28,6 +28,12 @@ jobs: - name: Build the Docker image run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_HUB }}:latest + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Push the Docker image run: docker push ${{ secrets.DOCKER_HUB }}:latest