Skip to content

Commit 91d87a4

Browse files
authored
Create docker-publish.yml
1 parent 49f5b9d commit 91d87a4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Log in to DockerHub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
21+
- name: Build and push Docker image
22+
uses: docker/build-push-action@v5
23+
with:
24+
push: true
25+
tags: |
26+
esollier/pyjacker:latest
27+
esollier/pyjacker:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)