File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 24
24
client-id : ${{ secrets.AZURE_CLIENT_ID }}
25
25
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
26
26
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
27
+
28
+ # - name: Log into registry
29
+ # uses: docker/login-action@v3
30
+ # with:
31
+ # registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
32
+ # username: "${{ env.ACR_LOGIN_USERNAME }}"
33
+ # password: "${{ env.ACR_LOGIN_PASSWORD }}"
27
34
28
35
- name : Delete Test Container Image
29
36
uses : azure/cli@v2
Original file line number Diff line number Diff line change 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
- name : Set up Docker Buildx
27
30
uses : docker/setup-buildx-action@v3
28
31
- name : Log into registry
@@ -44,13 +47,13 @@ jobs:
44
47
platform=linux/${{ matrix.platform}}
45
48
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
46
49
47
- - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ github.ref_name }}
50
+ - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ steps.branch_name.outputs.GH_REF_NAME }}
48
51
if : ${{ github.ref != github.repository.default_branch }}
49
52
uses : docker/build-push-action@v5
50
53
with :
51
54
push : true
52
55
file : ' Dockerfile'
53
- tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform}}-${{ github.ref_name }}
56
+ tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform}}-${{ steps.branch_name.outputs.GH_REF_NAME }} }}
54
57
cache-from : type=gha
55
58
cache-to : type=gha,mode=max
56
59
build-args : |
You can’t perform that action at this time.
0 commit comments