diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b717faf2..a7ee79be 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -9,5 +9,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag seunglab/igneous && docker push seunglab/igneous + name: "Checkout Code" + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: "Build and Push" + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: seunglab/igneous