Skip to content

Commit

Permalink
ci(core): Add github action to build and push to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
alllenshibu committed Dec 29, 2023
1 parent 00e9e72 commit dba5a1d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/*/node_modules
**/*/build
**/*/dist
**/*/.env*
**/node_modules
**/build
**/dist
**/.env*
21 changes: 21 additions & 0 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

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

steps:
- uses: actions/checkout@v2
- run: |
docker build -t techno-event-management-core .
- run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker tag techno-event-management-core ${{ secrets.DOCKER_USER }}/techno-event-management-core:latest
docker push ${{ secrets.DOCKER_USER }}/techno-event-management-core:latest
75 changes: 38 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dba5a1d

Please sign in to comment.