Skip to content

Commit d493b5d

Browse files
committed
fix: sed ${{ github.ref_name }}
1 parent 1c45793 commit d493b5d

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: 'ACR: Docker Push'
22

33
on:
44
workflow_call:
5-
inputs:
6-
test_tag:
7-
description: 'Create test tag'
8-
default: 'false'
9-
type: string
5+
# inputs:
6+
# test_tag:
7+
# description: 'Create test tag'
8+
# default: 'false'
9+
# type: string
1010

1111
jobs:
1212
az-acr-push:
@@ -23,18 +23,21 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
26-
- name: Configure branch name
27-
id: branch_name
28-
run: echo "GH_REF_NAME=${${{ github.ref_name }}//\//-}" >> $GITHUB_OUTPUT
26+
2927
- name: Set up Docker Buildx
3028
uses: docker/setup-buildx-action@v3
29+
3130
- name: Log into registry
3231
uses: docker/login-action@v3
3332
with:
3433
registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
3534
username: "${{ env.ACR_LOGIN_USERNAME }}"
3635
password: "${{ env.ACR_LOGIN_PASSWORD }}"
37-
36+
37+
- name: Configure branch name
38+
id: branch_name
39+
run: echo "GH_REF_NAME=$(echo '${{ github.ref_name }}' | sed s|\|-|g)" >> $GITHUB_OUTPUT
40+
3841
- name: Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}
3942
uses: docker/build-push-action@v5
4043
with:

.github/workflows/az_acr_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
steps:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
20+
2021
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v3
22+
uses: docker/setup-buildx-action@v3
23+
2224
- name: Log into registry
2325
uses: docker/login-action@v3
2426
with:

0 commit comments

Comments
 (0)