Skip to content

Commit 91bf321

Browse files
committed
Update workflow build-push.yml
1 parent 6c22e90 commit 91bf321

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build-push.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Before tests are run a Docker build is performed, the resulting image has a tag of "test"
1313
# BATS is installed since it is commonly required by the tests.
1414
#
15-
# LICENSE: MIT License, Copyright (c) 2021-2023 Volt Grid Pty Ltd t/a Panubo
15+
# LICENSE: MIT License, Copyright (c) 2021-2025 Volt Grid Pty Ltd t/a Panubo
1616

1717
name: build and push on main and tags
1818

@@ -37,7 +37,9 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v5
41+
with:
42+
submodules: true
4143

4244
- name: Get repo name
4345
id: image_name
@@ -46,7 +48,7 @@ jobs:
4648
4749
- name: Docker meta
4850
id: meta
49-
uses: docker/metadata-action@v4
51+
uses: docker/metadata-action@v5
5052
with:
5153
# list of Docker images to use as base name for tags
5254
images: |
@@ -63,40 +65,38 @@ jobs:
6365
# type=sha
6466
6567
- name: Set up QEMU
66-
uses: docker/setup-qemu-action@v2
68+
uses: docker/setup-qemu-action@v3
6769

6870
- name: Set up Docker Buildx
6971
id: buildx
70-
uses: docker/setup-buildx-action@v2
72+
uses: docker/setup-buildx-action@v3
7173

7274
# The values provided to these two AWS steps are always the same for Panubo owned repos
7375
- name: Configure AWS Credentials
74-
uses: aws-actions/configure-aws-credentials@v1-node16
76+
uses: aws-actions/configure-aws-credentials@v4
7577
with:
7678
role-to-assume: ${{ env.GITHUB_ROLE_ARN }}
7779
aws-region: us-east-1
7880

7981
- name: Login to ECR
8082
if: github.event_name != 'pull_request'
81-
uses: docker/login-action@v2
83+
uses: docker/login-action@v3
8284
with:
8385
registry: public.ecr.aws
8486

8587
- name: Login to Quay.io
8688
if: github.event_name != 'pull_request'
87-
uses: docker/login-action@v2
89+
uses: docker/login-action@v3
8890
with:
8991
registry: quay.io
9092
username: ${{ secrets.PANUBUILD_QUAYIO_USERNAME }}
9193
password: ${{ secrets.PANUBUILD_QUAYIO_TOKEN }}
9294

9395
- name: Setup BATS
94-
uses: panubo/setup-bats-action@v2
95-
with:
96-
bats-version: 1.7.0
96+
uses: bats-core/bats-action@3.0.1
9797

9898
- name: Build and export to Docker
99-
uses: docker/build-push-action@v4
99+
uses: docker/build-push-action@v6
100100
with:
101101
builder: ${{ steps.buildx.outputs.name }}
102102
cache-from: type=gha
@@ -108,7 +108,7 @@ jobs:
108108
make _ci_test
109109
110110
- name: Build and Push
111-
uses: docker/build-push-action@v3
111+
uses: docker/build-push-action@v6
112112
with:
113113
builder: ${{ steps.buildx.outputs.name }}
114114
push: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)