File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docker image on DockerHub
2
+ on :
3
+ push :
4
+ paths :
5
+ - ' Dockerfile'
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@master
11
+ - uses : actions/checkout@master
12
+ with :
13
+ fetch-depth : ' 0'
14
+ - name : Bump version and push tag
15
+ uses :
anothrNick/[email protected]
16
+ env :
17
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
+ WITH_V : true
19
+ id : bump
20
+ - name : Create Release
21
+ id : create_release
22
+ uses : actions/create-release@v1
23
+ env :
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
25
+ with :
26
+ tag_name : ${{ steps.bump.outputs.new_tag }}
27
+ release_name : ${{ steps.bump.outputs.new_tag }}
28
+ body : |
29
+ Changes in this Release
30
+ - Rebuilt Docker image and published to DockerHub with new tag
31
+ draft : false
32
+ prerelease : false
33
+ - name : Publish to Registry
34
+ uses : elgohr/Publish-Docker-Github-Action@master
35
+ with :
36
+ name : ubcdsci/intro-to-ds
37
+ username : ${{ secrets.DOCKER_USERNAME }}
38
+ password : ${{ secrets.DOCKER_PASSWORD }}
39
+ tags : " latest,${{ steps.bump.outputs.new_tag }}"
40
+
You can’t perform that action at this time.
0 commit comments