File tree 2 files changed +41
-1
lines changed
2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 28
28
uses : actions/checkout@v4
29
29
- name : Build
30
30
id : build
31
- uses : docker/build-push -action@v5
31
+ uses : docker/build-p1ush -action@v5
32
32
with :
33
33
context : .
34
34
cache-from : type=gha
Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ env :
8
+ REGISTRY : ghcr.io
9
+
10
+ jobs :
11
+ ghcr :
12
+ runs-on : ubuntu-22.04
13
+ permissions :
14
+ contents : read
15
+ packages : write
16
+ if : github.repository_owner == 'Virtool'
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ - name : Write VERSION file
21
+ run : echo ${{ github.event.release.tag_name }} > VERSION
22
+ - name : Login to Registry
23
+ uses : docker/login-action@v3
24
+ with :
25
+ registry : ${{ env.REGISTRY }}
26
+ username : ${{ secrets.GH_USERNAME }}
27
+ password : ${{ secrets.GH_TOKEN }}
28
+ - name : Extract Metadata
29
+ id : meta
30
+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
31
+ with :
32
+ images : ${{ env.REGISTRY }}/virtool/iimi
33
+ - name : Build and Push
34
+ uses : docker/build-push-action@v5
35
+ with :
36
+ context : .
37
+ labels : ${{ steps.meta.outputs.labels }}
38
+ push : true
39
+ tags : ${{ steps.meta.outputs.tags }}
40
+ target : " base"
You can’t perform that action at this time.
0 commit comments