Skip to content

Commit 4579dda

Browse files
Update create-release.yml
1 parent e745340 commit 4579dda

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

.github/workflows/create-release.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,9 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16-
17-
- name: Test for get release data
18-
run: |
19-
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
20-
21-
echo $IMAGE_ID
22-
23-
# Change all uppercase to lowercase
24-
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
25-
26-
echo $IMAGE_ID
27-
28-
# Strip git ref prefix from version
29-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
30-
echo $VERSION
31-
32-
# Strip "v" prefix from tag name
33-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
34-
35-
echo $VERSION
36-
37-
# Use Docker `latest` tag convention
38-
[ "$VERSION" == "master" ] && VERSION=latest
39-
40-
echo $VERSION
41-
echo $IMAGE_ID
42-
43-
echo IMAGE_ID=$IMAGE_ID
44-
echo VERSION=$VERSION
45-
46-
echo $IMAGE_ID:$VERSION
47-
48-
docker tag image $IMAGE_ID:$VERSION
49-
docker push $IMAGE_ID:$VERSION
50-
5116
- name: Create Release
5217
id: create_release
5318
uses: actions/create-release@v1
54-
5519
env:
5620
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5721
with:

0 commit comments

Comments
 (0)