mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Use a raw tag
This commit is contained in:
parent
349bdbb776
commit
f5514b419a
1 changed files with 10 additions and 1 deletions
11
.github/workflows/pr.yaml
vendored
11
.github/workflows/pr.yaml
vendored
|
@ -35,13 +35,22 @@ jobs:
|
|||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.PAT_TOKEN }}
|
||||
- name: Get current branch name
|
||||
id: get_branch
|
||||
run: echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Replace / with - in branch name
|
||||
id: replace_slash
|
||||
run: |
|
||||
SANITIZED_BRANCH_NAME=$(echo "${{ env.branch_name }}" | tr '/' '-')
|
||||
echo "sanitized_branch_name=${SANITIZED_BRANCH_NAME}" >> $GITHUB_ENV
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
tags: |
|
||||
type=ref,enable=true,priority=600,prefix=${{matrix.type}}-,suffix=,event=branch
|
||||
type=raw,enable=true,prefix=${{matrix.type}}-,value=${{ env.sanitized_branch_name }}
|
||||
images: |
|
||||
ghcr.io/tokens-studio/tokens-studio-for-penpot
|
||||
- name: prebuild
|
||||
|
|
Loading…
Add table
Reference in a new issue