-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b35e18
commit 6f123a4
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push API image | ||
run: | | ||
docker build -t docker.io/prajjwalyd/api:latest ./api | ||
docker push docker.io/prajjwalyd/api:latest | ||
- name: Build and push URL-Shortener image | ||
run: | | ||
docker build -t docker.io/prajjwalyd/url-shortener:latest ./url-shortener | ||
docker push docker.io/prajjwalyd/url-shortener:latest | ||
- name: Build and push QR-Code-Generator image | ||
run: | | ||
docker build -t docker.io/prajjwalyd/qr-code-generator:latest ./qr-code-generator | ||
docker push docker.io/prajjwalyd/qr-code-generator:latest | ||
- name: Build and push Analytics image | ||
run: | | ||
docker build -t docker.io/prajjwalyd/analytics:latest ./analytics | ||
docker push docker.io/prajjwalyd/analytics:latest |