Skip to content

Commit

Permalink
step-final update
Browse files Browse the repository at this point in the history
  • Loading branch information
a3888s committed Dec 19, 2024
1 parent b5d4915 commit e825bae
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker Image
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/step-final-project:v1.0.0 .
- name: Push Docker Image
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/step-final-project:v1.0.0

0 comments on commit e825bae

Please sign in to comment.