Skip to content

Commit

Permalink
Fixed on push branches
Browse files Browse the repository at this point in the history
  • Loading branch information
nkononov committed Mar 21, 2024
1 parent 1e21455 commit db17d1c
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- published
push:
branches:
- release-1
- 'release*'
- master

jobs:
build:
Expand All @@ -18,13 +19,19 @@ jobs:

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
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 "branch=${branch}" >> $GITHUB_OUTPUT
echo "image_version=${image_version}" >> $GITHUB_OUTPUT
id: extract_branch

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

72 changes: 72 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db17d1c

Please sign in to comment.