Skip to content

Commit

Permalink
Update release-4.15 with new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kononovn committed Mar 21, 2024
1 parent 4d2cf63 commit d9b375c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract branch name
- name: Set image tag
shell: bash
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
version_digits=$(echo ${branch} | tr -d -c 0-9)
image_version=v$(echo ${version_digits} | cut -b 1).$(echo ${version_digits:1})
echo "image_version=${image_version}" >> $GITHUB_OUTPUT
id: extract_branch
image_tag=latest
if [ ${{ github.ref }} == 'refs/heads/release-\d.\d\d' ]; then
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
version_digits=$(echo ${branch} | tr -d -c 0-9)
image_tag=v$(echo ${version_digits} | cut -b 1).$(echo ${version_digits:1})
fi
echo "IMAGE_TAG=${image_tag}" >> $GITHUB_OUTPUT
id: set_image_tag

- name: Set up QEMU
run: |
ls -l
cat main/main.go
echo "Image pushed to ${{ steps.extract_branch.outputs.image_version }}"
# uses: docker/setup-qemu-action@v3


echo "Variable is ${{ steps.set_image_tag.outputs.IMAGE_TAG }}"

0 comments on commit d9b375c

Please sign in to comment.