Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
parse branch version
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnu committed Jan 4, 2021
1 parent c28294c commit f0bb2ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ jobs:
unzip -f $f
done
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch

- name: build and push container image
uses: docker/build-push-action@v2
id: docker_build
Expand All @@ -239,7 +244,7 @@ jobs:
tar_prefix=RaspberryMatic-${{ env.VERSION }}-${{ env.GITHUB_SHA7 }}-oci_
tags: |
ghcr.io/${{ github.repository_owner }}/raspberrymatic:${{ env.VERSION }}-${{ env.GITHUB_SHA7 }}
ghcr.io/${{ github.repository_owner }}/raspberrymatic:${GITHUB_REF##*/}
ghcr.io/${{ github.repository_owner }}/raspberrymatic:${{ steps.extract_branch.outputs.branch }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit f0bb2ba

Please sign in to comment.