diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 46408f4..d51b54f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,11 +13,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Publish Docker image uses: docker/build-push-action@v2 with: context: . push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/ref-card-02:${{ github.sha }} - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_PASSWORD }}