We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f0d045 + a629916 commit 624239bCopy full SHA for 624239b
1 file changed
.github/workflows/docker.yml
@@ -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
26
+ images: pymmdrza/pyexplorer
27
28
+ - name: Build and push Docker image
29
+ uses: docker/build-push-action@v5
30
31
+ context: .
32
+ push: true
33
+ tags: pymmdrza/pyexplorer:latest
34
+ labels: ${{ steps.meta.outputs.labels }}
0 commit comments