File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Set up Docker Buildx
31
31
uses : docker/setup-buildx-action@v3
32
- with :
33
- driver : docker
34
32
35
33
- name : Build & Push ${{ github.event.repository.name }}:${{ env.IMAGE_TAG }}
36
34
uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change 11
11
image_tag : " test-${{ github.event.pull_request.head.ref }}"
12
12
13
13
az-acr-delete :
14
- name : ' Azure : Delete Branch Images'
14
+ name : ' ACR : Delete Branch Images'
15
15
runs-on : ubuntu-latest
16
16
environment : dev
17
17
env :
33
33
uses : azure/cli@v2
34
34
with :
35
35
inlineScript : |
36
+ GH_REF_NAME=$(echo ${{ github.event.pull_request.head.ref }} | sed 's|/|-|g')
36
37
az acr repository delete \
37
38
--name ${{ env.AZURE_CONTAINER_REGISTRY }} \
38
- --image ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ github.head_ref } } \
39
+ --image ${{ github.event.repository.name }}:${{ matrix.platform}}-${GH_REF_NAME } \
39
40
--yes
40
41
41
42
gh-delete-branch :
47
48
with :
48
49
token : ${{ secrets.GH_TOKEN }}
49
50
50
- - name : Dump GitHub context
51
- env :
52
- GITHUB_CONTEXT : ${{ toJSON(github) }}
53
- run : echo "$GITHUB_CONTEXT"
54
-
55
51
- name : Delete Branch
56
52
shell : bash
57
53
run : git push origin --delete ${{ github.head_ref }}
You can’t perform that action at this time.
0 commit comments