Skip to content

Commit

Permalink
💚 Feat: Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzenoozi committed Dec 21, 2023
1 parent d70030b commit 9890b1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Portfolio CI/CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build & Push Image
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{secrets.DOCKERHUB_USERNAME}}" --password-stdin
docker image build . -t amirzenoozi/portfolio-react-app:latest
docker push amirzenoozi/portfolio-react-app:latest

0 comments on commit 9890b1a

Please sign in to comment.