Skip to content

Deploy to Docker Hub #40

Deploy to Docker Hub

Deploy to Docker Hub #40

Workflow file for this run

name: Deploy to Docker Hub
on:
workflow_run:
workflows: ["Run Tests"] # This ensures this workflow runs after the test workflow
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: saisab/cardanoapiio-app:latest