Skip to content

Commit

Permalink
chore: add dockerhub action
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 16, 2023
1 parent 3f84c85 commit 6372466
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: docker-push-ghcr

on:
workflow_dispatch:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: docker-push-dockerhub

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GHCR
uses: docker/[email protected]
with:
registry: docker.io
username: ${{ secrets.DOCKER_NAME }}
password: ${{ secrets.DOCKER_PAT }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: docker.io/${{ secrets.DOCKER_NAME }}/moksha-mint:latest

0 comments on commit 6372466

Please sign in to comment.