Skip to content

Docker Build and Push Image #1

Docker Build and Push Image

Docker Build and Push Image #1

name: Build and Push Docker Image
on:
workflow_dispatch:
# push:
# branches:
# - main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t lifailon/torapi:latest .
docker push lifailon/torapi:latest