Skip to content

Build & Publish Docker Image #55

Build & Publish Docker Image

Build & Publish Docker Image #55

Workflow file for this run

name: Build & Publish Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: pymmdrza/pyexplorer
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: pymmdrza/pyexplorer:latest
labels: ${{ steps.meta.outputs.labels }}