Skip to content

Commit 3859438

Browse files
authored
Merge pull request #89 from kjsanger/bug/fix-reference-format
Fix reference format error on docker push
2 parents b5889f5 + 130e393 commit 3859438

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/create-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
name: "Create release"
3+
34
on:
45
push:
56
tags:
@@ -12,6 +13,11 @@ jobs:
1213
run:
1314
shell: bash -l -e -o pipefail {0}
1415

16+
env:
17+
IMAGE_NAME: npg-irods-python
18+
REPOSITORY_OWNER: ${{ github.repository_owner }}
19+
PYTHON_VERSION: "3.10"
20+
1521
steps:
1622
- name: Checkout code
1723
uses: actions/checkout@v3
@@ -25,7 +31,7 @@ jobs:
2531
- name: "Set up Python"
2632
uses: actions/setup-python@v3
2733
with:
28-
python-version: "3.10"
34+
python-version: ${{ env.PYTHON_VERSION }}
2935
architecture: "x64"
3036

3137
- name: "Install Dependencies"
@@ -67,9 +73,6 @@ jobs:
6773
password: ${{ secrets.GITHUB_TOKEN }}
6874

6975
- name: "Build Docker image"
70-
env:
71-
IMAGE_NAME: npg-irods-python
72-
REPOSITORY_OWNER: ${{ github.repository_owner }}
7376
run: |
7477
docker build \
7578
--file Dockerfile \
@@ -84,5 +87,6 @@ jobs:
8487
- name: "Push Docker image"
8588
run: |
8689
docker images
90+
echo pushing "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:$RELEASE_VERSION"
8791
docker push "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:$RELEASE_VERSION"
8892
docker push "ghcr.io/$REPOSITORY_OWNER/$IMAGE_NAME:latest"

0 commit comments

Comments
 (0)