From 892e2f014e077bc55757e0fb0d3a1bad177725d1 Mon Sep 17 00:00:00 2001 From: CodeElixir Date: Sun, 11 Feb 2024 04:33:14 +0530 Subject: [PATCH] Update git workflow. --- .github/workflows/docker-image-cd.yml | 3 --- .github/workflows/docker-image-ci.yml | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) 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..a0eb62f 100644 --- a/.github/workflows/docker-image-ci.yml +++ b/.github/workflows/docker-image-ci.yml @@ -5,19 +5,17 @@ on: branches: [ "main" ] jobs: - build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4.1.1 + with: + submodules: 'true' - name: Login Dockerhub env: 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