1010 - completed
1111
1212env :
13- # Use docker.io for Docker Hub if empty
1413 REGISTRY : ghcr.io
15- # github.repository as <account>/<repo>
1614 IMAGE_NAME : ${{ github.repository }}
1715
1816jobs :
@@ -25,10 +23,10 @@ jobs:
2523 outputs :
2624 tag : ${{ steps.tag.outputs.new_tag }}
2725 steps :
28- - uses : actions/checkout@v4
26+ - name : Checkout
27+ uses : actions/checkout@v4
2928 with :
30- ref : ${{ github.event.pull_request.merge_commit_sha }}
31- fetch-depth : ' 0'
29+ fetch-depth : 0
3230
3331 - name : Bump version and push tag
3432 id : tag
@@ -47,13 +45,11 @@ jobs:
4745 contents : write
4846 packages : write
4947 steps :
50- - uses : actions/checkout@v4
48+ - name : Checkout
49+ uses : actions/checkout@v4
5150 with :
52- ref : ${{ github.event.pull_request.merge_commit_sha }}
5351 fetch-depth : ' 0'
5452
55- # Login against a Docker registry except on PR
56- # https://github.com/docker/login-action
5753 - name : Log into registry ${{ env.REGISTRY }}
5854 if : github.event_name != 'pull_request'
5955 uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
@@ -65,16 +61,12 @@ jobs:
6561 - name : Process repository name
6662 run : echo "IMAGE_PATH=${REGISTRY}/${IMAGE_NAME@L}" >> $GITHUB_ENV
6763
68- # Extract metadata (tags, labels) for Docker
69- # https://github.com/docker/metadata-action
7064 - name : Docker meta
7165 id : meta
7266 uses : docker/metadata-action@v5
7367 with :
7468 images : ${{ env.IMAGE_PATH }}
7569
76- # Build and push Docker image with Buildx (don't push on PR)
77- # https://github.com/docker/build-push-action
7870 - name : Build and push Docker image
7971 uses : docker/build-push-action@v5
8072 with :
9486 statuses : write
9587 runs-on : ubuntu-latest
9688 steps :
97- - name : Checkout
98- uses : actions/checkout@v3
89+ - uses : actions/checkout@v3
9990 with :
10091 fetch-depth : 0
10192
0 commit comments