mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 20:09:04 -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
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.PAT_TOKEN }}
|
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
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
tags: |
|
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: |
|
images: |
|
||||||
ghcr.io/tokens-studio/tokens-studio-for-penpot
|
ghcr.io/tokens-studio/tokens-studio-for-penpot
|
||||||
- name: prebuild
|
- name: prebuild
|
||||||
|
|
Loading…
Add table
Reference in a new issue