Skip to content

Commit

Permalink
fixed dockerhub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpbm committed Nov 23, 2023
1 parent 9cc5543 commit 7b94962
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ node_modules
cypress*
*git*
docker-compose.yaml
assets/*
assets/*
*.env
*.secrets
7 changes: 4 additions & 3 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Docker image
name: Publish Docker image (DockerHub)

on:
push:
Expand All @@ -9,7 +9,7 @@ env:
IMAGE_NAME: ${{ github.event.repository.name }}

jobs:
push_to_registry:
push_to_registry_dockerhub:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
Expand All @@ -26,13 +26,14 @@ jobs:
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
tags: type=raw,value=latest
images: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

*.secrets
*.env
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"cSpell.words": [
"dockerhub",
"github",
"latin",
"roboto",
"Shopee"
Expand Down

0 comments on commit 7b94962

Please sign in to comment.