Skip to content

Commit

Permalink
actually push
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccallister committed Dec 2, 2024
1 parent 0b0c8a0 commit 6924853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tag-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
packages: write

steps:
- name: Get the PHP version
- name: Get PHP version
id: php_version
env:
PHP_VERSION: ${{ env.PHP_VERSION }}
IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
run: |
echo "actual_version=$(docker run --rm --entrypoint sh ${IMAGE} -c 'php -v | head -n 1 | cut -d " " -f 2')" >> "$GITHUB_OUTPUT"
- name: Tag the image with the actual PHP version
- name: Tag and push
env:
IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.PHP_VERSION }}
ACTUAL_VERSION: ${{ steps.php_version.outputs.actual_version }}
run: |
docker tag ${{ env.IMAGE }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.ACTUAL_VERSION }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.ACTUAL_VERSION }}

0 comments on commit 6924853

Please sign in to comment.