Skip to content

Commit fb49ea2

Browse files
committed
github: update actions and trigger builds on pull reqs
1 parent b8bc83d commit fb49ea2

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/build-cloud-controller-manager.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,33 @@ on:
33
push:
44
tags:
55
- '*'
6+
pull_request:
7+
68
jobs:
79
build:
810
runs-on: ubuntu-latest
911
steps:
10-
-
11-
name: Set up Docker Buildx
12-
uses: docker/setup-buildx-action@v2
13-
-
14-
name: Set up Docker Metadata
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
- name: Set up Docker Metadata
1517
id: meta
16-
uses: docker/metadata-action@v4
18+
uses: docker/metadata-action@v5
1719
with:
1820
images: |
1921
cr.brightbox.com/${{ vars.CR_ACCOUNT }}/${{ vars.CR_REPO }}/brightbox-cloud-controller-manager
2022
tags: |
2123
type=semver,pattern={{version}}
22-
-
23-
name: Login to Brightbox Container Registry
24-
uses: docker/login-action@v2
24+
type=ref,event=pr
25+
- name: Login to Brightbox Container Registry
26+
uses: docker/login-action@v3
2527
with:
2628
registry: cr.brightbox.com
2729
username: ${{ vars.CR_USERNAME }}
2830
password: ${{ secrets.CR_SECRET }}
29-
-
30-
name: Docker build and push
31-
uses: docker/build-push-action@v4
31+
- name: Docker build and push
32+
uses: docker/build-push-action@v6
3233
with:
3334
tags: ${{ steps.meta.outputs.tags }}
3435
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)