File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
+ tags :
7
+ - ' v*'
6
8
pull_request :
7
9
jobs :
8
10
build :
53
55
tags : ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
54
56
cache-from : type=registry,ref=ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
55
57
cache-to : type=registry,ref=ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }},mode=max
58
+ - name : Save Docker image to tarball
59
+ if : github.event_name == 'push'
60
+ run : |
61
+ docker save ghcr.io/${{ github.actor }}/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }} -o ${{ env.IMG_REPO_NAME }}.tar
62
+ - name : Create GitHub release
63
+ if : github.event_name == 'push'
64
+ uses : actions/create-release@v1
65
+ with :
66
+ tag_name : ${{ env.TAG_NAME }}
67
+ release_name : Release ${{ env.TAG_NAME }}
68
+ draft : false
69
+ prerelease : false
70
+ id : create_release
71
+ - name : Upload tar as release asset
72
+ if : github.event_name == 'push'
73
+ uses : actions/upload-release-asset@v1
74
+ with :
75
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
76
+ asset_path : ./${{ env.IMG_REPO_NAME }}.tar
77
+ asset_name : ${{ env.IMG_REPO_NAME }}.tar
78
+ asset_content_type : application/x-tar
You can’t perform that action at this time.
0 commit comments