Skip to content

Commit 624239b

Browse files
committed
2 parents 0f0d045 + a629916 commit 624239b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build & Publish Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Log in to Docker Hub
17+
uses: docker/login-action@v3
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Extract metadata for Docker
23+
id: meta
24+
uses: docker/metadata-action@v5
25+
with:
26+
images: pymmdrza/pyexplorer
27+
28+
- name: Build and push Docker image
29+
uses: docker/build-push-action@v5
30+
with:
31+
context: .
32+
push: true
33+
tags: pymmdrza/pyexplorer:latest
34+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)