File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
name : " Create release"
3
+
3
4
on :
4
5
push :
5
6
tags :
12
13
run :
13
14
shell : bash -l -e -o pipefail {0}
14
15
16
+ env :
17
+ IMAGE_NAME : npg-irods-python
18
+ REPOSITORY_OWNER : ${{ github.repository_owner }}
19
+ PYTHON_VERSION : " 3.10"
20
+
15
21
steps :
16
22
- name : Checkout code
17
23
uses : actions/checkout@v3
25
31
- name : " Set up Python"
26
32
uses : actions/setup-python@v3
27
33
with :
28
- python-version : " 3.10 "
34
+ python-version : ${{ env.PYTHON_VERSION }}
29
35
architecture : " x64"
30
36
31
37
- name : " Install Dependencies"
67
73
password : ${{ secrets.GITHUB_TOKEN }}
68
74
69
75
- name : " Build Docker image"
70
- env :
71
- IMAGE_NAME : npg-irods-python
72
- REPOSITORY_OWNER : ${{ github.repository_owner }}
73
76
run : |
74
77
docker build \
75
78
--file Dockerfile \
84
87
- name : " Push Docker image"
85
88
run : |
86
89
docker images
90
+ echo pushing "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:$RELEASE_VERSION"
87
91
docker push "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:$RELEASE_VERSION"
88
92
docker push "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:latest"
You can’t perform that action at this time.
0 commit comments