Skip to content

Commit 1665c20

Browse files
authored
Update GitHub Actions workflow with newer versions and terminology changes (#3)
- Rename workflow from "Docker" to "Container Image Build" - Update checkout action from v2 to v6 - Update docker/login-action, docker/metadata-action, and docker/build-push-action to latest commit SHAs - Change "Docker" references to "Container" in comments and step names - Modify tag pattern from 'v*.*.*' to '*v*.*.*' - Change context from '.' to './' Signed-off-by: Pratik Raj <[email protected]>
1 parent 484eee9 commit 1665c20

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker
1+
name: Container Image Build
22

33
# This workflow uses actions that are not certified by GitHub.
44
# They are provided by a third-party and are governed by
@@ -9,7 +9,7 @@ on:
99
push:
1010
branches: [ ]
1111
# Publish semver tags as releases.
12-
tags: [ 'v*.*.*' ]
12+
tags: [ '*v*.*.*' ]
1313
pull_request:
1414
branches: [ ]
1515

@@ -30,32 +30,32 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v6
3434

35-
# Login against a Docker registry except on PR
35+
# Login against a Container registry except on PR
3636
# https://github.com/docker/login-action
3737
- name: Log into registry ${{ env.REGISTRY }}
3838
if: github.event_name != 'pull_request'
39-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
39+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
4040
with:
4141
registry: ${{ env.REGISTRY }}
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444

45-
# Extract metadata (tags, labels) for Docker
45+
# Extract metadata (tags, labels) for Container
4646
# https://github.com/docker/metadata-action
47-
- name: Extract Docker metadata
47+
- name: Extract Container metadata
4848
id: meta
49-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
49+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
5050
with:
5151
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5252

53-
# Build and push Docker image with Buildx (don't push on PR)
53+
# Build and push Container image with Buildx (don't push on PR)
5454
# https://github.com/docker/build-push-action
55-
- name: Build and push Docker image
56-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
55+
- name: Build and push Container image
56+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
5757
with:
58-
context: .
58+
context: ./
5959
push: ${{ github.event_name != 'pull_request' }}
6060
tags: ${{ steps.meta.outputs.tags }}
61-
labels: ${{ steps.meta.outputs.labels }}
61+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)