Skip to content

Commit

Permalink
Merge pull request #494 from pulp/patchback/backports/3.25/bed07a1baa…
Browse files Browse the repository at this point in the history
…a86a9abb969c4204d96f1fec892f33/pr-492

[PR #492/bed07a1b backport][3.25] Fix stable branches being tagged as the current
  • Loading branch information
mikedep333 authored Jun 2, 2023
2 parents c781ec4 + b9cc7c1 commit 0b61b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pulp_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ jobs:
podman images -a
- name: Set version and branch image tags
run: |
app_version=$(podman run pulp/${{ matrix.app.image_name }}:stable bash -c "pip3 show ${{ matrix.app.pip_name }} | sed -n -e 's/Version: //p'")
app_version=$(podman run --pull=never pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} bash -c "pip3 show ${{ matrix.app.pip_name }} | sed -n -e 's/Version: //p'")
app_branch=$(echo ${app_version} | grep -oP '\d+\.\d+')
echo "APP_VERSION: ${app_version}"
echo "APP_BRANCH: ${app_branch}"
echo "APP_VERSION=${app_version}" >> $GITHUB_ENV
echo "APP_BRANCH=${app_branch}" >> $GITHUB_ENV
base_version=$(podman run pulp/${{ matrix.app.image_name }}:stable bash -c "pip3 show pulpcore | sed -n -e 's/Version: //p'")
base_version=$(podman run --pull=never pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} bash -c "pip3 show pulpcore | sed -n -e 's/Version: //p'")
base_branch=$(echo ${base_version} | grep -oP '\d+\.\d+')
echo "BASE_VERSION: ${base_version}"
Expand Down

0 comments on commit 0b61b23

Please sign in to comment.