Skip to content

Commit 0da3395

Browse files
authored
Update Docker actions to use tags instead hashes
1 parent e2a82af commit 0da3395

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/actions/tutorials/publish-packages/publish-docker-images.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,29 +196,29 @@ jobs:
196196
uses: {% data reusables.actions.action-checkout %}
197197

198198
- name: Log in to Docker Hub
199-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
199+
uses: docker/login-action@v3
200200
with:
201201
username: {% raw %}${{ secrets.DOCKER_USERNAME }}{% endraw %}
202202
password: {% raw %}${{ secrets.DOCKER_PASSWORD }}{% endraw %}
203203

204204
- name: Log in to the Container registry
205-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
205+
uses: docker/login-action@v3
206206
with:
207207
registry: {% ifversion fpt or ghec %}ghcr.io{% elsif ghes %}{% data reusables.package_registry.container-registry-hostname %}{% endif %}
208208
username: {% raw %}${{ github.actor }}{% endraw %}
209209
password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
210210

211211
- name: Extract metadata (tags, labels) for Docker
212212
id: meta
213-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
213+
uses: docker/metadata-action@v5
214214
with:
215215
images: |
216216
my-docker-hub-namespace/my-docker-hub-repository
217217
{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}
218218
219219
- name: Build and push Docker images
220220
id: push
221-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
221+
uses: docker/build-push-action@v6
222222
with:
223223
context: .
224224
push: true

0 commit comments

Comments
 (0)