Skip to content

Commit

Permalink
Create docker-login.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
djgomezsantos authored Aug 25, 2024
1 parent 0fadb51 commit ee23ae7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-login.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Login

on:
push:
branches:
- main

jobs:
docker-login:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker Image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/your-repo:latest .

- name: Push Docker Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/your-repo:latest

0 comments on commit ee23ae7

Please sign in to comment.