Skip to content

Commit

Permalink
Merge pull request #5 from infracloudio/feature/build-push
Browse files Browse the repository at this point in the history
Feature/build push
  • Loading branch information
gargimehendale authored Dec 14, 2022
2 parents 77d8543 + ed89918 commit 8e19f6f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: package
path: target/
- name: Docker build
run: |
docker build . -t shubhadainfra/cicd_infracloud:1
name: package
path: target/
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker push
run: |
docker push shubhadainfra/cicd_infracloud:1
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN_INCEPTION }}
- name: Build and Push docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: infracloudinception/cicd_inception:1

0 comments on commit 8e19f6f

Please sign in to comment.