chore: upgrade GitHub Actions Docker workflow dependencies

- Update GitHub Actions workflow to use latest versions of checkout, login, metadata, and build-push actions
- Bump action versions from v2/v3/v4 to v3/v4/v5 for improved compatibility and features
This commit is contained in:
jango-blockchained
2025-02-04 15:11:36 +01:00
parent 54112c9059
commit d6bb83685d

View File

@@ -20,7 +20,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 # Required for version detection fetch-depth: 0 # Required for version detection
@@ -41,7 +41,7 @@ jobs:
body: ${{ steps.tag_version.outputs.changelog }} body: ${{ steps.tag_version.outputs.changelog }}
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
@@ -49,7 +49,7 @@ jobs:
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: | tags: |
@@ -57,7 +57,7 @@ jobs:
type=raw,value=latest type=raw,value=latest
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
push: true push: true