Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 981ccd2

Browse files
committed
chore: add deprecation notice and migration guidance to README and entrypoint script
1 parent 6bd792c commit 981ccd2

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,66 @@
44

55
[![Marketplace](https://img.shields.io/badge/GitHub-Marketplace-green.svg)](https://github.com/marketplace/actions/docker-build-and-publish) [![Release](https://img.shields.io/github/release/philips-software/docker-ci-scripts.svg)](https://github.com/philips-software/docker-ci-scripts/releases)
66

7+
---
8+
9+
## ⚠️ DEPRECATION NOTICE ⚠️
10+
11+
**This action is deprecated and will no longer receive updates.**
12+
13+
We recommend migrating to the official Docker GitHub Actions, which now provide equivalent functionality with better support and features:
14+
15+
### Migration Path
16+
17+
For building and pushing Docker images with multiple tags, use the official Docker actions:
18+
19+
1. **Set up Docker Buildx**: [`docker/setup-buildx-action`](https://github.com/docker/setup-buildx-action)
20+
2. **Generate image metadata and tags**: [`docker/metadata-action`](https://github.com/docker/metadata-action)
21+
3. **Build and push images**: [`docker/build-push-action`](https://github.com/docker/build-push-action)
22+
23+
### Signing and Attestations
24+
25+
For signing and SBOM/provenance attestations, use GitHub's built-in attestation support:
26+
27+
- The latest [`docker/build-push-action`](https://github.com/docker/build-push-action) has native support for SBOM and provenance
28+
- See: [Docker Build Attestations Documentation](https://docs.docker.com/build/ci/github-actions/attestations/)
29+
30+
### Example Migration
31+
32+
```yaml
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
35+
id: buildx
36+
37+
- name: Login to Artifactory
38+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
39+
with:
40+
registry: dl-innersource-docker.artifactory-ehv.ta.philips.com
41+
username: ${{ secrets.ARTIFACTORY_USERNAME }}
42+
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
43+
44+
- name: Docker metadata
45+
id: meta
46+
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
47+
with:
48+
images: ghcr.io/${{ github.repository }}
49+
tags: |
50+
type=schedule,pattern=nightly
51+
type=semver,pattern={{version}}
52+
type=ref,event=branch,suffix=-{{sha}}
53+
type=ref,event=pr,suffix=-{{sha}}
54+
55+
- name: Build and push Docker image
56+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
57+
with:
58+
context: .
59+
file: ./Dockerfile
60+
push: true
61+
tags: ${{ steps.meta.outputs.tags }}
62+
labels: ${{ steps.meta.outputs.labels }}
63+
```
64+
65+
---
66+
767
This action will build a docker image from a given directory.
868
969
</div>

entrypoint.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
#!/bin/sh -l
22

3+
echo ""
4+
echo "=========================================================================================================="
5+
echo "⚠️ DEPRECATION WARNING: This action is deprecated and will no longer receive updates."
6+
echo "=========================================================================================================="
7+
echo ""
8+
echo "Please migrate to the official Docker GitHub Actions for better support and features:"
9+
echo ""
10+
echo " 1. docker/setup-buildx-action - https://github.com/docker/setup-buildx-action"
11+
echo " 2. docker/metadata-action - https://github.com/docker/metadata-action"
12+
echo " 3. docker/build-push-action - https://github.com/docker/build-push-action"
13+
echo ""
14+
echo "For SBOM and provenance attestations, use the built-in support in docker/build-push-action:"
15+
echo " - Documentation: https://docs.docker.com/build/ci/github-actions/attestations/"
16+
echo ""
17+
echo "See the README for a complete migration example:"
18+
echo " - https://github.com/philips-software/docker-ci-scripts#readme"
19+
echo ""
20+
echo "=========================================================================================================="
21+
echo ""
22+
23+
# Write deprecation notice to GitHub Step Summary
24+
{
25+
echo "## ⚠️ DEPRECATION NOTICE"
26+
echo ""
27+
echo "**This action is deprecated and will no longer receive updates.**"
28+
echo ""
29+
echo "Please migrate to the official Docker GitHub Actions:"
30+
echo ""
31+
echo "### Recommended Migration"
32+
echo ""
33+
echo "1. **[docker/setup-buildx-action](https://github.com/docker/setup-buildx-action)** - Set up Docker Buildx"
34+
echo "2. **[docker/metadata-action](https://github.com/docker/metadata-action)** - Generate image metadata and tags"
35+
echo "3. **[docker/build-push-action](https://github.com/docker/build-push-action)** - Build and push images"
36+
echo ""
37+
echo "### Attestations & Signing"
38+
echo ""
39+
echo "For SBOM and provenance attestations, use the built-in support in \`docker/build-push-action\`:"
40+
echo ""
41+
echo "- 📖 [Docker Build Attestations Documentation](https://docs.docker.com/build/ci/github-actions/attestations/)"
42+
echo ""
43+
echo "### Migration Example"
44+
echo ""
45+
echo "See the [README](https://github.com/philips-software/docker-ci-scripts#readme) for a complete migration example."
46+
echo ""
47+
echo "---"
48+
echo ""
49+
} >> "$GITHUB_STEP_SUMMARY"
50+
351
if [ -n "${SLSA_PROVENANCE}" ]
452
then
553
echo "+ SLSA Provenance ---------"

0 commit comments

Comments
 (0)