We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7af7a commit 774a355Copy full SHA for 774a355
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish Docker image
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ push_to_registry:
9
+ name: Push Docker image to Docker Hub
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Check out the repo
13
+ uses: actions/checkout@v3
14
15
+ - name: Log in to Docker Hub
16
+ uses: docker/login-action@v2
17
+ with:
18
+ username: ${{ secrets.DOCKER_USERNAME }}
19
+ password: ${{ secrets.DOCKER_PASSWORD }}
20
21
+ - name: Extract metadata (tags, labels) for Docker
22
+ id: meta
23
+ uses: docker/metadata-action@v4
24
25
+ images: claby2/voltproxy
26
27
+ - name: Build and push Docker image
28
+ uses: docker/build-push-action@v4
29
30
+ context: .
31
+ file: ./Dockerfile
32
+ push: true
33
+ tags: ${{ steps.meta.outputs.tags }}
34
+ labels: ${{ steps.meta.outputs.labels }}
0 commit comments