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 6375d9f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
10 changes: 8 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,18 @@ 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/}}
image_version=v$(echo ${branch} | tr -d -c 0-9 | cut -b 1).$(echo ${branch: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 6375d9f

Please sign in to comment.