diff --git a/.github/workflows/docker-image-cd.yml b/.github/workflows/docker-image-cd.yml index 82741b5..c582211 100644 --- a/.github/workflows/docker-image-cd.yml +++ b/.github/workflows/docker-image-cd.yml @@ -7,11 +7,8 @@ on: - completed jobs: - build: - runs-on: self-hosted - steps: - name: Pull Docker image run: sudo docker pull gsandeep04/wild-oasis:latest diff --git a/.github/workflows/docker-image-ci.yml b/.github/workflows/docker-image-ci.yml index 0f4a9e7..377fef0 100644 --- a/.github/workflows/docker-image-ci.yml +++ b/.github/workflows/docker-image-ci.yml @@ -5,11 +5,8 @@ on: branches: [ "main" ] jobs: - build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4.1.1 - name: Login Dockerhub @@ -17,7 +14,6 @@ jobs: DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD - - name: Build the Docker image run: docker build -t gsandeep04/wild-oasis . - name: Push to Dockerhub