File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Docker image
2
2
3
3
on :
4
- workflow_dispatch :
5
- branches :
6
- - master
4
+ workflow_call :
7
5
defaults :
8
6
run :
9
7
shell : bash
8
+ permissions : read-all
10
9
11
10
jobs :
12
11
push_to_registry :
13
12
name : Push Docker image to Docker Hub
14
13
runs-on : ubuntu-latest
15
14
environment :
16
15
name : docker
17
- url : https://pypi.org/p /sqlite3-to-mysql
16
+ url : https://hub.docker.com/r/klement /sqlite3-to-mysql
18
17
steps :
19
18
- name : Check out the repo
20
19
uses : actions/checkout@v4
25
24
images : |
26
25
klement/sqlite3-to-mysql
27
26
ghcr.io/${{ github.repository }}
27
+ tags : |
28
+ type=ref,event=branch
29
+ type=ref,event=pr
30
+ type=semver,pattern={{version}}
31
+ type=semver,pattern={{major}}.{{minor}}.{{patch}}
28
32
- name : Log in to Docker Hub
29
33
uses : docker/login-action@v3
30
34
with :
40
44
uses : docker/build-push-action@v5
41
45
with :
42
46
context : .
43
- push : true
44
47
tags : ${{ steps.meta.outputs.tags }}
45
48
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 89
89
if : ${{ always() }}
90
90
run : |
91
91
rm -rf dist
92
- rm -rf $CHANGELOG_PATH
92
+ rm -rf $CHANGELOG_PATH
93
+ docker :
94
+ needs : build-and-publish
95
+ uses : ./.github/workflows/docker.yml
96
+ secrets : inherit
You can’t perform that action at this time.
0 commit comments