File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: 'ACR: Docker Push'
2
2
3
3
on :
4
4
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
10
10
11
11
jobs :
12
12
az-acr-push :
@@ -23,18 +23,21 @@ jobs:
23
23
steps :
24
24
- name : Checkout repository
25
25
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
+
29
27
- name : Set up Docker Buildx
30
28
uses : docker/setup-buildx-action@v3
29
+
31
30
- name : Log into registry
32
31
uses : docker/login-action@v3
33
32
with :
34
33
registry : " ${{ env.AZURE_CONTAINER_REGISTRY }}"
35
34
username : " ${{ env.ACR_LOGIN_USERNAME }}"
36
35
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
+
38
41
- name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}
39
42
uses : docker/build-push-action@v5
40
43
with :
Original file line number Diff line number Diff line change 17
17
steps :
18
18
- name : Checkout repository
19
19
uses : actions/checkout@v4
20
+
20
21
- name : Set up Docker Buildx
21
- uses : docker/setup-buildx-action@v3
22
+ uses : docker/setup-buildx-action@v3
23
+
22
24
- name : Log into registry
23
25
uses : docker/login-action@v3
24
26
with :
You can’t perform that action at this time.
0 commit comments