Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a63ef146fb1aec0ed6ff23cef0b4a2ff6903a7ed #556

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This is a comment
* [email protected]
40 changes: 40 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Push Docker Image

on:
push:
branches: ["master"]

jobs:
approval:
runs-on: ubuntu-latest
environment: Production # Specify the environment here

steps:
- name: Request approval
run: echo "Approval needed to proceed."

build:
runs-on: ubuntu-latest
needs: approval # This job will only run after approval is granted

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Azure Container Registry
uses: docker/login-action@v2
with:
registry: lucky.azurecr.io
username: ${{ secrets.AZURE_USERNAME }}
password: ${{ secrets.AZURE_PASSWORD }}

- name: Build Docker image
run: |
docker build -t lucky.azurecr.io/my-app:latest .

- name: Push Docker image
run: |
docker push lucky.azurecr.io/my-app:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tomcat:latest
RUN cp -R /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps

COPY ./*.war /usr/local/tomcat/webapps

12 changes: 4 additions & 8 deletions webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
<p>Please fill in this form to create an account.</p>
<hr>

<label for="Name"><b>Enter Name</b></label>
<input type="text" placeholder="Enter Full Name" name="Name" id="Name" required>
<br>
<label for="meperu"><b>Enter Name</b></label>
<input type="text" placeholder="Enter Full naam" name="Name" id="Name" required>

<label for="mobile"><b>Enter mobile</b></label>
<input type="text" placeholder="Enter moible number" name="mobile" id="mobile" required>
<br>
<label for="mobile"><b>Enter mobile number</b></label>
<input type="text" placeholder="Enter moible " name="mobile" id="mobile" required>

<label for="email"><b>Enter Email</b></label>
<input type="text" placeholder="Enter Email" name="email" id="email" required>
<br>

<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" id="psw" required>
<br>

<label for="psw-repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="psw-repeat" id="psw-repeat" required>
Expand Down