Skip to content

Commit 333352e

Browse files
committed
fixed dockerhub workflow
1 parent d259550 commit 333352e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/dockerhub.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Docker image
1+
name: Publish Docker image (DockerHub)
22

33
on:
44
push:
@@ -9,7 +9,7 @@ env:
99
IMAGE_NAME: ${{ github.event.repository.name }}
1010

1111
jobs:
12-
push_to_registry:
12+
push_to_registry_dockerhub:
1313
name: Push Docker image to Docker Hub
1414
runs-on: ubuntu-latest
1515
steps:
@@ -26,13 +26,14 @@ jobs:
2626
id: meta
2727
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
2828
with:
29+
tags: type=raw,value=latest
2930
images: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
3031

3132
- name: Build and push Docker image
3233
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
3334
with:
3435
context: .
35-
file: ./Dockerfile
36+
file: Dockerfile
3637
push: true
3738
tags: ${{ steps.meta.outputs.tags }}
3839
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,5 @@ dist
144144
# End of https://www.toptal.com/developers/gitignore/api/node
145145

146146
*.db
147+
148+
*.secrets

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cSpell.words": [
3+
"DOCKERHUB",
4+
"github"
5+
]
6+
}

0 commit comments

Comments
 (0)