From bc84804efd05212549a059efe31fa0ca8dd256fb Mon Sep 17 00:00:00 2001 From: Nansamba Ssensalo Date: Sun, 25 Aug 2024 13:42:41 -0700 Subject: [PATCH] changing docker workflow setup --- .github/workflows/docker-image.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 862ea58..67467d3 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,11 +8,19 @@ on: jobs: - build: + build_push_docker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag palm-and-vine-docker-image:$(date +%s) + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build & push Docker image + uses: mr-smithers-excellent/docker-build-push@v3 + with: + image: nssensalo/palm-and-vine-docker-image + tags: latest + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} \ No newline at end of file