summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-26 18:43:36 +0300
committerПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-26 18:43:36 +0300
commit9349f7f2e32ae68f23015f9a0517935619618461 (patch)
treec470217e5778d70341e7ba21f1a3ba78c2a7a47b /.github
parentefa6b53b6bdd0abf139bf3c36ccc56c87e6d7d7c (diff)
Fix tag usage in CD pipelines
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker-build-on-tag.yml2
-rw-r--r--.github/workflows/release-with-executable.yml4
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/docker-build-on-tag.yml b/.github/workflows/docker-build-on-tag.yml
index 4dfad32..71f3456 100644
--- a/.github/workflows/docker-build-on-tag.yml
+++ b/.github/workflows/docker-build-on-tag.yml
@@ -22,6 +22,6 @@ jobs:
context: .
platforms: linux/arm64,linux/amd64
push: true
- tags: us-central1-docker.pkg.dev/genuine-flight-317411/devel/krr:${{ github.ref }}
+ tags: us-central1-docker.pkg.dev/genuine-flight-317411/devel/krr:${{ github.ref#refs/tags/ }}
build-args: |
BUILDKIT_INLINE_CACHE=1
diff --git a/.github/workflows/release-with-executable.yml b/.github/workflows/release-with-executable.yml
index 18233cf..e7da856 100644
--- a/.github/workflows/release-with-executable.yml
+++ b/.github/workflows/release-with-executable.yml
@@ -27,7 +27,7 @@ jobs:
- name: Build with PyInstaller
run: |
pyinstaller krr.py
- zip -r ./dist/krr
+ zip -r "krr-linux-${{ github.ref#refs/tags/ }}.zip" ./dist/krr
- name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.2
@@ -36,5 +36,5 @@ jobs:
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: .
- asset_name: "krr-linux-${{ github.ref }}.zip"
+ asset_name: "krr-linux-${{ github.ref#refs/tags/ }}.zip"
asset_content_type: application/octet-stream