diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 97d420a1d..2cc7ba4f8 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -44,8 +44,12 @@ jobs: with: name: my-artifact path: ${{ github.workspace }}/myapp/target/ + + - name: Docker login + run: | + docker login -u ${{ secrets.DOCKER_UNAME }} -p ${{ secrets.DOCKER_KEY }} - - name: Build Docker image + - name: Build Docker image and push uses: docker/build-push-action@v4 with: context: . @@ -60,6 +64,7 @@ jobs: docker push my-docker-image:1.0.1 + # docker push my-docker-image:1.0.1 # docker-image: # name: Publish to Docker Hub # runs-on: ubuntu-latest