Skip to content

Commit

Permalink
Create devops.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
V-i-g-n-e-s-h-N authored Jan 8, 2024
1 parent f3dd888 commit f45aaf9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/devops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: DevOps
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: registry.hub.docker.com
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker build -t registry.hub.docker.com/tuksennitro/abc .
docker push registry.hub.docker.com/tuksennitro/abc

0 comments on commit f45aaf9

Please sign in to comment.