Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
canoziia committed Oct 27, 2023
1 parent d265eb2 commit 56a9a56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-publish-qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up environment
run: |
QB=$(echo "${GITHUB_REF}" | sed -n 's/^refs\/tags\/qBv\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/p')
LT=$(echo "${GITHUB_REF}" | sed -n 's/^refs\/tags\/qBv[0-9]\+\.[0-9]\+\.[0-9]\+-ltv\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/p')
echo "QB=${QB}" >> $GITHUB_ENV
echo "LT=${LT}" >> $GITHUB_ENV
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand Down Expand Up @@ -88,8 +95,8 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
QT_VERSION=5
QBT_VERSION=devel
LIBBT_VERSION=master
QBT_VERSION=${{ env.QB }}
LIBBT_VERSION=${{ env.LT }}
LIBBT_CMAKE_FLAGS=-Dwebtorrent=ON
# Sign the resulting Docker image digest except on PRs.
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/docker-publish-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up environment
run: |
QB=$(echo "${GITHUB_REF}" | sed -n 's/^refs\/tags\/qBv\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/p')
LT=$(echo "${GITHUB_REF}" | sed -n 's/^refs\/tags\/qBv[0-9]\+\.[0-9]\+\.[0-9]\+-ltv\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/p')
echo "QB=${QB}" >> $GITHUB_ENV
echo "LT=${LT}" >> $GITHUB_ENV
# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand Down Expand Up @@ -88,8 +95,8 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
QT_VERSION=6
QBT_VERSION=devel
LIBBT_VERSION=master
QBT_VERSION=${{ env.QB }}
LIBBT_VERSION=${{ env.LT }}
LIBBT_CMAKE_FLAGS=-Dwebtorrent=ON
# Sign the resulting Docker image digest except on PRs.
Expand Down

0 comments on commit 56a9a56

Please sign in to comment.