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

Feature1 #6

Merged
merged 6 commits into from
Feb 7, 2024
Merged
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
16 changes: 10 additions & 6 deletions .github/workflows/github-action-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ name: Setup Nginx
on:
pull_request:
types:
- closed
- opened

# - closed
# branches:
branches:
- feature1
# - main
# tags:
# - v1
jobs:
build:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
Expand All @@ -24,7 +28,7 @@ jobs:
run: echo "Build successful"

test:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
needs: build
steps:
Expand All @@ -35,7 +39,7 @@ jobs:
run: echo "Tests successful!"

deploy:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
needs: [build,test]
steps:
Expand All @@ -46,14 +50,14 @@ jobs:
run: echo "Deploy to ECR"

setup-nginx:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
needs: [build,test,deploy]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: print name
run: echo "Hello $NAME. My USER_NAME is ${{secrets.USER_NAME}}. USER_PASSWORD is ${{secrets.USER_PASSWORD}}"
run: echo "Hello $NAME. My USER_NAME is ${{env.USER_NAME}}. USER_PASSWORD is ${{env.USER_PASSWORD}}"

- name: Create and Navigate to Directory
run: |
Expand Down