Skip to content

Commit

Permalink
Update git workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeElixir committed Feb 10, 2024
1 parent d264477 commit fa8da74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker-image-cd.yml
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/docker-image-ci.yml
Expand Up @@ -5,19 +5,15 @@ on:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.1
- 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
Expand Down

0 comments on commit fa8da74

Please sign in to comment.