Skip to content

Deploy to Docker Hub #2

Deploy to Docker Hub

Deploy to Docker Hub #2

Workflow file for this run

name: Deploy to Docker Hub
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
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