Skip to content

step-final update

step-final update #4

Workflow file for this run

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 -f app/Dockerfile app/
- name: Push Docker Image
run: |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/step-final-project:v1.0.0