Skip to content

Fix Docker build failed when try copy file that not exists #2

Fix Docker build failed when try copy file that not exists

Fix Docker build failed when try copy file that not exists #2

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: rmsh/goit-pythonweb-hw-03:latest